Re: [web2py] Re: special chars in view, utf8 issue ?!

2020-02-13 Thread António Ramos
my solution .decode('utf8').encode('latin1') just did it without thinking... dont know what i´m doing but it works... {{temp=db(db.apps.id>0).select(db.apps.icon,db.apps. url,db.apps.bg,db.apps.title,orderby=db.apps.id)}} {{for x in temp:}}

[web2py] Re: special chars in view, utf8 issue ?!

2020-02-12 Thread Clemens
Hello Ramos, since I can't see your screenshot, I have to guess. But in German we also our special characters and I encode these by the following procedure: import re > import sys > > def convert_special_chars(label): > if sys.version_info[0]==2: # python 2.x > label =