简体   繁体   中英

SQL Server & C# UTF8 encoding not correct

I am getting a very big file from a linux box which I import with TOAD Wizard to SQL Server Express for testing

The file is supposed to be correctly using special characters like ÄäÖö... which the admin of the box confirms.

I am seeing only misinterpreted characters (like Ä) via Putty&less, textviewer in windows, toads import wizard, inside the db and when returning the values in .net

The only idea I have is to replace the characters in C# but for that I would need a complete list of replacements to do.

Does anyone have such a list, a finished class or any other idea?

I solved the problem by converting the file on the unix side:

iconv unicode unknown input format

use iconv to upconvert UTF-8 to UTF-16 , which SQLServer can import correctly

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