首页 > 试题广场 >

我们在web应用开发过程中经常遇到输出某种编码的字符,如is

[问答题]
我们在web应用开发过程中经常遇到输出某种编码的字符,如iso8859-1等,请你讲讲如何输出一个某种编码的字符串?
String testStr = new String(str.getBytes(), "UTF-8");
发表于 2019-02-25 16:02:06 回复(0)
resp.setCharacterEncoding("iso8859-1")
发表于 2019-01-30 11:41:26 回复(0)
String str = new String(strs.getBytes("GBK"),"UTF-8");
发表于 2020-02-28 13:07:53 回复(0)