#3630: Newforms and accents don't like each others
------------------------+---------------------------------------------------
   Reporter:  Baptiste  |                Owner:  adrian         
     Status:  new       |            Component:  django.newforms
    Version:  SVN       |           Resolution:                 
   Keywords:  accents   |                Stage:  Unreviewed     
  Has_patch:  0         |           Needs_docs:  0              
Needs_tests:  0         |   Needs_better_patch:  0              
------------------------+---------------------------------------------------
Changes (by Baptiste):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 Some informations :
 If I "print" the POST informations, accents are encoded like that :
 \xc3\xa9
 (é)
 I tried to convert them to UTF8 :
 {{{
                 for i in data :
                         data[i] = data[i].decode("utf8","replace")
                 print data
 }}}
 But now the string recorded in the db stops to the first
 accent."Espérance" is recorded as "Esp" ; and the server gives me this
 message :
 {{{
 /usr/lib/python2.4/site-packages/django/db/backends/mysql/base.py:42:
 Warning: Data truncated for column 'username' at row 1
   return self.cursor.execute(sql, params)
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3630#comment:1>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to