There are two possibilities: 1) it is an autocomplete bug; 2) the encoding
of the layout is not set to utf8. If you can check 2 and that is correct,
please open a ticket and I will check 1.
On Tuesday, 27 November 2012 07:59:29 UTC-6, Dmitry Mosin wrote:
>
> Hi there
>
> I've stuck with a small problem with the subject.
>
> There is a table with a fileld like this:
> Field('author','reference auth_user',widget =
> SQLFORM.widgets.autocomplete(request, db.auth_user.cn, id_field=
> db.auth_user.id, limitby=(0,20), min_length=2), ondelete="no
> action",label='Автор'),
>
> And there is a line in the controller:
> form = SQLFORM(db.sometable)
>
>
> Dropdown won't search cyrillic letters.
> If I type %% in the input - it drops down all values, and I can select
> cyrillic value, and it succesfully gets into the table.
>
> GET looks like
> https://xxx.yyy.ru/default/new?_autocomplete_auth_user_cn=%u041C%u043E
> and it returns nothing
>
> But if I call it manually, like that
> https://xxx.yyy.ru/default/new?_autocomplete_auth_user_cn=%D0%9C%D0%BE
> it returns all suitable values.
>
>
> How can I fix that?
>
>
> Thanks in advance
> (Sorry for bad English)
>
>
--