#14525: Bug - exception in messages.info(), etc when using unicode characters.
-----------------------------------+----------------------------------------
          Reporter:  yoyoma        |         Owner:  nobody  
            Status:  new           |     Milestone:          
         Component:  Contrib apps  |       Version:  1.2     
        Resolution:                |      Keywords:  messages
             Stage:  Unreviewed    |     Has_patch:  0       
        Needs_docs:  0             |   Needs_tests:  0       
Needs_better_patch:  0             |  
-----------------------------------+----------------------------------------
Changes (by tobias):

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

Comment:

 I think the error might be in your code.  See below:

 {{{
 In [4]: u'Thanks, {0}.'.format(u'°')
 Out[4]: u'Thanks, \xc2\xb0.'

 In [5]: 'Thanks, {0}.'.format(u'°')
 ---------------------------------------------------------------------------
 UnicodeEncodeError                        Traceback (most recent call
 last)

 /home/tobias/<ipython console> in <module>()

 UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1:
 ordinal not in range(128)
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14525#comment:1>
Django <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