开发者

unescape unicode from input

开发者 https://www.devze.com 2023-02-20 11:37 出处:网络
I am reading line by line from standard input with Scanner, then i print these lines to standard output. But, i need to convert escaped Unicode ch开发者_Python百科aracters like \\u00fd to actual chara

I am reading line by line from standard input with Scanner, then i print these lines to standard output. But, i need to convert escaped Unicode ch开发者_Python百科aracters like \u00fd to actual character. Is there any way how to do it?


I recommend http://commons.apache.org/lang/api-2.4/org/apache/commons/lang/StringEscapeUtils.html.

0

精彩评论

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