[web2py] Re: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)

2018-01-15 Thread Alex Beskopilny
use encode () decode() for utf8 message example: 1 def cyr2upper(inp,up=True): if len(inp) > STR_LEN_LIMIT: inp= inp[:STR_LEN_LIMIT] try: inp=inp.decode('utf8') except UnicodeDecodeError, e: inp=u'Уточните данные , плс, :)' symbols =

[web2py] Re: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)

2018-01-15 Thread Alexey Zaytsev
Я добавил эти строки в db.py, но это приводит к той же ошибке. воскресенье, 14 января 2018 г., 17:09:31 UTC+2 пользователь Alex Beskopilny написал: > > we can set page

[web2py] Re: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)

2018-01-14 Thread Alex Beskopilny
we can set page encoding in models/db.py T.force('ru') if request.env.wsgi_url_scheme in ['https', 'HTTPS']: session.secure() ... пятница, 5 января 2018 г., 22:41:19 UTC+3 пользователь Alexey Zaytsev написал: > > >

[web2py] Re: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)

2018-01-13 Thread Alexey Zaytsev
I found a solution to my problem. You need to set the language of the browser in English to the top суббота, 6 января 2018 г., 4:04:46 UTC+2 пользователь Dave S

[web2py] Re: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)

2018-01-05 Thread Dave S
On Friday, January 5, 2018 at 11:41:19 AM UTC-8, Alexey Zaytsev wrote: [pictographs of screens elided] I take you have users with names that require UTF-8 or code pages, rather than mere ASCII. It might be useful information to know if those are in UTF-8 or if not which code pages (we can