开发者

SQL Server & C# UTF8 encoding not correct

开发者 https://www.devze.com 2023-04-11 09:13 出处:网络
I am getting a very big file from a linux box which I import with TOAD Wizard to SQL Server Express for testing

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 o开发者_Python百科f 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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号