java 参数乱码
复制JavaString pressTxt = "来源:累行客";
byte[] bytes = pressTxt.getBytes("UTF-8");
String str = new String(bytes, "UTF-8");
System.out.println(str);
- 1
- 2
- 3
- 4
- 5
java 参数乱码
复制JavaString pressTxt = "来源:累行客";
byte[] bytes = pressTxt.getBytes("UTF-8");
String str = new String(bytes, "UTF-8");
System.out.println(str);