ratanakvlun / node-odbc

ODBC bindings for Node.js
ISC License
5 stars 3 forks source link

decoding problem of unicode #4

Open vanceeasleaf opened 5 years ago

vanceeasleaf commented 5 years ago

Some colunms of the the result set are array buffers when the type of it is varchar(n) . I try to convert it with iconv-lite and I found that the chinese charactars are converted correctly with utf16 decoding but the english charactars are mistaken under utf16. When decoding with utf8, the english charactars are correct but the chinese ones are mistaken. Is it possible to obtain string directly from your query api?

predator747 commented 3 years ago

@vanceeasleaf did you find a solution here? I guess we having same issues.