le 25.09.2007 14:04 jean-marc pouchoulon a écrit:
> just for info:
>
> using last version from svn
> code:
>
> flash("Changements sauvegardés!")
>
>
flash(u"Changements sauvegardés!")
^
^
You need to use unicode strings explicitly. The -#- coding: only specifies how
your é is encoded in your source file...
> traceback:
>
> File
> "c:\python25\lib\site-packages\TurboGears-1.0.4b1-py2.5.egg\turbogears\controllers.py",
> line 81, in _process_output
> tg_flash = _get_flash()
> File
> "c:\python25\lib\site-packages\TurboGears-1.0.4b1-py2.5.egg\turbogears\controllers.py",
> line 429, in _get_flash
> message = unicode(message, 'utf-8')
> UnicodeDecodeError: 'utf8' codec can't decode bytes in position 21-23:
> invalid data
>
> # -*- coding: cp1252 -* in controllers.py
>
>
> jmp
>
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---