java中,utf-8编码的转义字符怎么转换成中文

2024-12-22 15:25:28
推荐回答(2个)
回答1:

String str = new String("暗示大家".getBytes(),"UTF-8");
重新用utf-8编码

或者用
URLDecoder.decode("xxxxxx", "UTF-8");重新用utf-8解码

回答2:

URLDecoder.decode(content,"utf-8")