Hi szimszon,

you have to encode the options in UTF-8 and u'Új'.encode('UTF-8') does
not do what you think it does.

You need to lookup each character that is not in the x00-xFF range in
a table:
Ú  is xC39A in UTF-8, so 'Új' encoded is '\xC3\x9Aj'

The table I am using is at www.utf8-chartable.de

If somebody knows a less cumbersome way, let us know.

Denes.


On Feb 4, 1:41 pm, szimszon <szims...@gmail.com> wrote:
> If you mean u'Új'.encode('UTF-8') ? It's not working :(
>
> On febr. 3, 22:12, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > Use UTF8 not unicode.
>
> > On Feb 3, 2:03 pm, szimszon <szims...@gmail.com> wrote:
>
> > >IS_IN_SET(['Új', 'Beépítve', 'Eladva', 'Használt','Selejtezve',
> > > 'Cseredarab', 'Bérben', 'Hibás'],multiple=True)
>
> > > If I select "Új" I get: value not allowed
> > > If I select "Selejtezve" it's OK.

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to