I edited appadmin.py via Notepad++ configured to save as UTF-8 (the
file itself already begins with # -*- coding: utf-8 -*-).

Exactly the same way I typed the Portuguese characters on
appadmin.html (which are displayed correctly).

Note that appadmin.py isn't displayed correctly through the
framework's editor. I even 'corrected' the characters through the
framework - just to see them messed up on NotePad++ this time.

Thanks,

Eduardo

On 10 mar, 13:23, Massimo Di Pierro <massimo.dipie...@gmail.com>
wrote:
> How did you edit using utf8 or did you insert latin-1 chars?
>
> On Mar 10, 9:44 am, Eduardo <meketr...@gmail.com> wrote:
>
> > Hi,
>
> > I modified the insert( ) function of appadmin.py from the example app
> > by passing a dict to the labels attribute of SQLFORM( ) - in other
> > words:
>
> > appadmin.py > insert( ) > SQLFORM(...... labels=dict)
>
> > The labels, with Portuguese characters, are not correctly encoded on
> > the final result. Note that both appadmin.py and layout.html are
> > declared as utf-8, and those two, together with appadmin.html, were
> > saved as utf-8.
>
> > Also note that a dict passed to SQLTABLE within appadmin.html is being
> > correctly displayed, which makes me confuse.
>
> > Any suggestions?
>
> > Eduardo
>
>

Reply via email to