Em Sunday 10 February 2008 00:08:33 iain duncan escreveu: > I'm using genshi, and having no problems if my unicode comes from the > genshi template. I have the default encoding setting at utf-8. > > My questions is why does a unicode string from the controller come out > wrong, is there some where I need to set something so that the python > side makes a u"momcafé" come out right when passed through a genshi > template?
I just specify the encoding on the python file besides using u'string'. All my files start with: # -*- encoding: utf-8 -*- And, of course, my system is configured to use Unicode (otherwise I'd have to specify the correct encoding used on the file). -- Jorge Godoy <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

