MySQL AND UNICODE

  • Thread starter Thread starter Amir Alilou
  • Start date Start date
A

Amir Alilou

HI
How we can store UNICODE characters/strings in MySQL databases and then
use this character/string in the web with ASP.NET +VB.
for example in MSSQL SERVER we use literal "N" when we use INSERT INTO
query.but in MySQL i dont know how to store unicode characters in
database.

Plase help me with sample
thanks
 
Amir Alilou said:
HI
How we can store UNICODE characters/strings in MySQL databases and then
use this character/string in the web with ASP.NET +VB.
for example in MSSQL SERVER we use literal "N" when we use INSERT INTO
query.but in MySQL i dont know how to store unicode characters in
database.

Plase help me with sample
thanks
You may find the samples included with this article helpful.

http://msdn2.microsoft.com/zh-cn/library/system.text.unicodeencoding(VS.71).aspx
 
You have to define the character set of our tables as UTF8 or ucs2.

If you are working on already created tables, beware of the character
set of each VARCHAR field.
 
Back
Top