﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
6052	SafeUnicode is not type.UnicodeType  in _mysql.connection.escape	Alexander	nobody	"Hello.

{{{cleaned_data['content']}}} is type `django.utils.safestring.SafeUnicode`

This get error when recording in a database.

Because, the function can only identify unicode or any other as string.

In _mysql.c:
{{{
static PyObject * _escape_item( PyObject *item, PyObject *d){
    PyObject *quoted=NULL, *itemtype, *itemconv;
    if (!(itemtype = PyObject_Type(item))) goto error;
    itemconv = PyObject_GetItem(d, itemtype);
}}}

Temporary solution to the problem:  {{{unicode(cleaned_data['content'])}}}

"		closed	Database layer (models, ORM)	dev		fixed	UnicodeBranch UnicodeEncodeError mysqldb SafeUnicode	djbenji@… olau@… tom@… jarek.zgoda@… eric@… martin@… simon@…	Unreviewed	1	0	0	0	0	0
