Good question. No idea. left left hand side asked the database to perform 
capitalization in unicode. The right hand side does it in python. There is 
no guarante they will use the same rules for cyrillic. You can try:

db.wanted.fam.upper()==fam.decode('utf8').upper().encode('utf8')

but I cannot promise it works.

On Saturday, 22 November 2014 21:33:00 UTC-6, Александр Остыловский wrote:
>
> how to get to work upper with Cyrillic ?
> db.wanted.fam.upper()==fam.upper()
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to