Var s="blue";
Var=gb2312 Encoding. GetEncoding (" gb2312 ");
.=var utf8 Encoding utf8;
Var gbBts=gb2312. GetBytes (s);
String utf8String=utf8. Get string (gbBts);
How to convert utf8String to "blue", please?
CodePudding user response:
Var s="blue";
Var=gb2312 Encoding. GetEncoding (" gb2312 ");
.=var utf8 Encoding utf8;
Var gbBts=gb2312. GetBytes (s);
String gb2312str=gb2312. Get string (gbBts);