lunarmodules / luasql

LuaSQL is a simple interface from Lua to a DBMS.
http://lunarmodules.github.io/luasql
535 stars 192 forks source link

read data from luasql with utf8 format #82

Open sbh96 opened 6 years ago

sbh96 commented 6 years ago

0down votefavorite | I need to read data in my query with utf8 format, I tried to change collation of my SQL database when I read data base on English alphabet every thing good, but I have trouble in Arabic or other languages.I print a string stored in variable came from in mysql query and show me like this  ??????? i dont have problem in latin string came from database lua sql in arabic or persian texts have problem and output unknow string type. how I can solve this problem to show them correct?

ghost commented 3 years ago

Anyone have a solution ?