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