简体   繁体   中英

How to store Vietnamese characters in SQL Server 2005?

I wanted to add my colleague's information in my database for testing purposes. Since he his from Vietnam, his name has a special Vietnamese character in it ('ơ'). When I updated the database, the character was transformed to a regular 'o'...

How can I store that kind of special character inside SQL Server Express 2005?

At the very least, you'll need to use the nchar or nvarchar data type, and a client that supports unicode (such as Java or any .NET language).

Then, I'd expect it to just work..;-)

nvarchar and nchar

SUMMARY: Character data types that are either fixed-length, nchar, or variable-length, nvarchar, Unicode data and use the UNICODE UCS-2 character set.

您可能需要使用NVARCHAR数据类型?

我想最好的方法是使SQL Server使用Unicode存储信息。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM