Olli Wang wrote:
> Thanks, Dalius. It works. But I happened into another encoding issue:
> 
> global_test = lazy_gettext(_('Global Test'))
> 
> class HelloController(BaseController):
>     def test(self):
>         return str(global_test)   # Works fine, returns the translated
> string
> 
>     def test2(self):
>         return unicode(global_test)  # It renders the following
Try following:

return unicode(global_test.decode('utf-8'))

Again, plain guess. I guess there are more possibilities but I'm not 
aware about them. You should consult pylons code here.

Regards,
Dalius


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to