Commit b499c6f4 authored by Quxl's avatar Quxl

x

parent 9d3b86d3
......@@ -1202,4 +1202,14 @@ public class StringUtil {
return stack;
}
public static String NewGBKString(byte[] bytes) {
String sSerialNumber = null;
try {
sSerialNumber = new String(bytes, "GBK");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
sSerialNumber = new String(bytes);
}
return sSerialNumber;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment