node-mssql icon indicating copy to clipboard operation
node-mssql copied to clipboard

Problem with Farsi characters

Open amirzandi opened this issue 9 years ago • 3 comments

While updating a table and setting some Farsi/Arabic characters into a column, this changes them to a code like El1 2F/l.

Please Help!

amirzandi avatar Aug 24 '17 14:08 amirzandi

anyone please help!

amirzandi avatar Aug 26 '17 09:08 amirzandi

Have you confirmed that you are using data types in node and the database that are Unicode capable (i.e. nvarchar)? http://tediousjs.github.io/tedious/api-datatypes.html https://stackoverflow.com/questions/612430/when-must-we-use-nvarchar-nchar-instead-of-varchar-char-in-sql-server

slmmm avatar Aug 26 '17 19:08 slmmm

My problem has solved after changing the VarChar to NVarChar and unicode is now working like a charm.

amirzandi avatar Aug 27 '17 05:08 amirzandi