problem with the display of Russian language

31 views
Skip to first unread message

Zhenya Kolchin

unread,
Jun 23, 2016, 5:22:57 AM6/23/16
to web2py-users
I make a query to the MSSQL database with russian full names but receive ����  this only instead of Иван for example

Massimo Di Pierro

unread,
Jun 24, 2016, 5:37:41 AM6/24/16
to web2py-users
Can you please check the DB IO separately from web2py? 

s = "Иван".encode('utf8')
k = db.youtable.insert(yourfield = s)
assert db.yourtable[k].youfield == s

Then the problem may be the encoding declared in your page layout.

Nbush

unread,
Jun 24, 2016, 8:57:06 AM6/24/16
to web2py-users
try

DAL(mssql4://user:password@hostname/dbname, driver_args = {'DRIVER' : 'FreeTDS', 'TDS_Version' : '8.0', 'ClientCharset':'UTF8'})

четверг, 23 июня 2016 г., 12:22:57 UTC+3 пользователь Zhenya Kolchin написал:
Reply all
Reply to author
Forward
0 new messages