java中“utf-8”编码的转义字符应该怎么转换成中文?

如题所述

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

或者用
URLDecoder.decode("xxxxxx", "UTF-8");重新用utf-8解码
温馨提示:答案为网友推荐,仅供参考
相似回答