#27901: Problem with Django & MySQL & model fields returning custom unicode 
classes
-------------------------------------+-------------------------------------
               Reporter:  Dominique  |          Owner:  nobody
  Barton                             |
                   Type:  Bug        |         Status:  new
              Component:  Database   |        Version:  1.10
  layer (models, ORM)                |       Keywords:  mysql, unicode,
               Severity:  Normal     |  error
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Hi there

 I use a custom model field (inherited from `TextField`) which simply
 returns its value as an "enhanced" `unicode` object.
 Unfortunately, this will raise UnicodeErrors as MySQLdb apparently fails
 recognizing those values as `unicode`. The comparision isn't very clever
 there ;)

 MySQLdb has a `use_unicode` flag, but I don't know how to implement it in
 Django and I think this is a serious bug.

 I've prepared a whole test case right here: https://github.com/domibarton
 /django-mysql-unicode-error

 I hope this is enough for a "proper" bug description.

 Cheers
 Domi

--
Ticket URL: <https://code.djangoproject.com/ticket/27901>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.bf7f7d16a0791a08dac312da4ad00e8e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to