Massimo, I would suggest this correction by Iceberg as default for controller and model templates...
On Jun 13, 3:38 am, Iceberg <iceb...@21cn.com> wrote: > Mmm, try putting these lines at the beginning of your controller and > see whether it makes difference? > > #!/usr/bin/env python > # coding: utf8 > > On Jun13, 10:30am, Francisco Gama <francisco....@gmail.com> wrote: > > > as you can see on my first post in this thread I also tried it that > > way but I get it messed up with > > message='Castro de Avelãs'. Something like, 'Castro de Avel?s' > > > with message=u'Castro de Avelãs' I get 'Castro de Avels' > > > On Jun 13, 3:26 am, Iceberg <iceb...@21cn.com> wrote: > > > > No need to u'Castro de Avelãs', just 'Castro de Avelãs', providing > > > that your source code itself is in utf8 (by default, it is). > > > > On Jun13, 7:27am, blackthorne <francisco....@gmail.com> wrote: > > > > > I'm trying to display text in a page using an universal encoding such > > > > as UTF-8. > > > > Here is an example: > > > > return dict(message=u'Castro de Avelãs') > > > > > in the view I have: > > > > > <html><head> > > > > <meta http-equiv="content-type" content="text/html; charset=utf-8" /> > > > > </head> > > > > ... > > > > {{=message}} > > > > ... > > > > > It doesn't work... I don't get the 'ã' or I get it messed up if I do > > > > message='Castro de Avelãs' > > > > > I know for a fact that the problem is not related to the browser and > > > > it's not on the view side because it works fine if I hardcode it (as > > > > in put that string in the html template). > > > > > Thank you --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---