error when reading unicode chars from mdb database!!!

Post here all your questions related with SmartFoxServer .Net/Unity3D API

Moderators: Lapo, Bax

liverol
Posts: 31
Joined: 15 Jul 2009, 23:49

error when reading unicode chars from mdb database!!!

Postby liverol » 15 Sep 2010, 07:43

hi there,
i created a mdb database with Access,and used odbc driver to read data,
everything worked fine when the info in the database tables were filled
with english chars,but when i filled some fields using chinese char(unicode),i could't get the right result,the data i got is "??"

i saw some people here used sfs with chinese without problem,but not sure this works or not when reading data from odbc database,is this a bug or i missed some settings?

reading code i am using:
server extension:
...
item.name = tempRow.getItem("name")
...

client function :OnExtensionResponse
...
_name=data.GetObj("db").GetObj("0").GetString("name");
...

field name in database table is using chinese chars.

thanks for help!!!

Return to “.Net / Unity3D API”

Who is online

Users browsing this forum: No registered users and 14 guests