I code in TextMate, that is set to create files in UTF-8 by default. The problem I think is that the code of compiled Template isn't utf-8 encoded.
On Jun 16, 3:23 pm, James <[email protected]> wrote: > Make sure the actual template is saved as a utf-8 encoded file. > > On Jun 14, 5:31 am, andrei <[email protected]> wrote: > > > > > This raises UnicodeDecodeError: > > > test.py: > > > import web, os > > render = > > web.template.render(os.path.abspath(os.path.dirname(__file__))) > > render.test() > > > test.html: > > > $var array = ["ÏÄÉÎ","Ä×Á","ÔÒÉ"] > > $ test = "ÔÅËÓÔ" > > <p>just a test</p> -- You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en.
