开发者

String encoding in android

开发者 https://www.devze.com 2023-03-18 19:10 出处:网络
I need to encode string in android but it doesn\'t work . I don\'t know which encoding should I do .I need to display \"Ruzyn\\u011b (PRG)\" on textview but it display same as look without encoding .I

I need to encode string in android but it doesn't work . I don't know which encoding should I do .I need to display "Ruzyn\u011b (PRG)" on textview but it display same as look without encoding .Is there any help开发者_如何学JAVA ??


Just use s=new String (s.getBytes()), do not use UTF-8.

0

精彩评论

暂无评论...
验证码 换一张
取 消