Home 对String进行强制转码
Post
Cancel

对String进行强制转码

1
String test = new String(object.getTest().getBytes("ISO-8859-1"), "UTF-8");
This post is licensed under CC BY 4.0 by the author.