2009/3/21 Alexei Vinidiktov <[email protected]>

>
> AchipA, thanks for taking the time to investigate the issue!
>
> 2009/3/21 AchipA <[email protected]>:
> >
> > Oops, wrong copypaste, here is the correct one:
> >
> > In [1]: validator = IS_LENGTH(1)
> >
> > In [2]: validator('a')
> > Out[2]: ('a', None)
> >
> > In [3]: validator('aa')
> > Out[3]: ('aa', 'too long!')
> >
> > In [4]: validator('á')
> > Out[4]: ('\xc3\xa1', 'too long!')
> >
> > In [5]: validator('á'.decode('utf-8'))
> > Out[5]: (u'\xe1', None)
> >
> > In [6]: validator('ж'.decode('utf-8'))
> > Out[6]: (u'\u0436', None)
> >
> > I say Alexei found a bug :)
> >
> [...]
>
>
:-)


>
> --
> Alexei Vinidiktov
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to