简体   繁体   中英

SQL Server backup collation issue

I was given SQL Server 2005 backup with collation set to : SQL_Latin1_General_CP1_CI_AI

When I select any data it looks like the data is saved in different collation , for example :

user : "Micha³" - which should be "Michał" and so on

I've tried converting tables and database to one of Polish collation, also tried select with collate but it still looks the same.

Have anyone had similar issue and knows what actually is going on ?

Collation (sorting order) implies character encoding (mapping characters to bytes) - did you try using Unicode (utf-8, utf-16)? In a pinch, Latin-2 (aka ISO-8859-2, Central European single-byte charset) may be what you're looking for.

In other words, Latin-1 is a single-byte character encoding for Western-European languages, but it can't store characters from Central-European (or other) languages.

See also this for a longer explanation of charsets, collations, and other headaches .

You say "when I select ...". Where are the query results being displayed?

长话短说,整理与该问题没有太大关系,另一个保存数据的应用程序使用混合编码进行了编码,我发现它们本身无法正确显示数据。

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