On 25 set, 09:04, jean-marc pouchoulon <[EMAIL PROTECTED]
montpellier.fr> wrote:
> just for info:
>
> using last version from svn
> code:
>
> flash("Changements sauvegardés!")
>
> traceback:
>
> File
> "c:\python25\lib\site-packages\TurboGears-1.0.4b1-py2.5.egg\turbogears\cont-rollers.py",
> line 81, in _process_output
> tg_flash = _get_flash()
> File
> "c:\python25\lib\site-packages\TurboGears-1.0.4b1-py2.5.egg\turbogears\cont-rollers.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
Check the error message: you are converting from UTF-8 to CP1252
(whatever that is...). I'd recommend using UTF-8 for I18Nized
versions of your website and your database.
On the other hand, if the string isn't a UnicodeString then TG
shouldn't be doing this conversion at _get_flash().
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---