Bruno, Alan, thanks for replies!

Actually I hoped that web2py have built-in methods to converting all
input to Unicode strings (since this is tendency for all
applications).

Do web2py guaranties, that input string always converted to UTF-8 from
client browser encoding? I'm not sure.
But if it is then I think Bruno's solution is most applicable with
only note that input value can be not correct UTF-8 string, so it
should be checked or ignored, like so:
> unicode(value, 'utf-8', 'ignore')

--
Vladimir Rutsky

Reply via email to