Home > Net >  C # winfrom string noise problems
C # winfrom string noise problems

Time:10-09

Why can garbled words clearly is a string, this how to solve the

CodePudding user response:

Chinese output garbled?
Reference the package: System. Text. The Encoding. CodePages

CodePudding user response:

Debug your plug-in installed at sixes and sevens third party?

CodePudding user response:

String STR="? D? Ae??? 12 oi1u ";
Encoding ec=Encoding. GetEncoding (" iso - 8859-1 ");
Byte [] btArr=ec. GetBytes (STR);
String strBuffer=Encoding. The Default. Get string (btArr);
Console. WriteLine (strBuffer);
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Original: https://blog.csdn.net/maozhu_yimi/article/details/50633919
  •  Tags:  
  • C#
  • Related