Hi ,
I am trying to insert chinese characters in database using sql statement but they appear as '????????' in the databse.Can anyone help me with this .
Thanks
Hi ,
I am trying to insert chinese characters in database using sql statement but they appear as '????????' in the databse.Can anyone help me with this .
Thanks
Try to change the column datatype that contain the chineese characters from char() to nchar() or from varchar() to nvarchar().
Also, make sure that the database itself is configured to allow them (Often labelled as Unicode)
Hi Thanks for teh reply .I am using nvarchar but how can i configure for unicode.Thanks again
Ah, as you're using MS SQL, using the nvarchar will store as unicode so you shouldn't be having the issue. Does it decode correctly when you pull back the data? It could just be that your viewing font doesn't support unicode.
right now i have just inserted them in database .I ll try to see what they look like when i ll pull them back .thanks
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.