On 4/2/10 7:20 PM, duncanid...@vectorball.com wrote: > Hello sorry for the delay, was away from the computer (yeah I should not do > that:) ) > > It worked > > To be more specific it does not work if I prefix the string as "unicode" > (u"....") but it does work with my accentuated string straight in the file, > that make sense since my file has the # -*- coding: utf-8 -*- stance at the > top.
Hmm, that's surprising. > One day I'll wrap my head for good around that python - unicode stuff, > probably right before the python ecosystem is ready for python 3 ;). Join the club... > for reference Error message with the u"mesure de la complexité relative de la > fiche" string is > File > "C:\Dev\Sources\TimeCards\lib\site-packages\chameleon-1.1.1-py2.5.egg\chameleon\core\template.py", > line 180, in cook_and_render > return func(econtext, rcontext) > File "<string>", line 160, in render > File "<string>", line 1, in __str__ > UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position > 22: ordinal not in range(128) > > position 22 is the 'é' of course ;) Weird. That may be a bug only related to literals passed as description, title, etc. Please let me know if you see anything else like this. Thanks! -- Chris McDonough Agendaless Consulting, Fredericksburg VA The repoze.bfg Web Application Framework Book: http://bfg.repoze.org/book _______________________________________________ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev