unescape unicode from input

删除回忆录丶 提交于 2019-12-29 09:19:09

问题


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 characters like \u00fd to actual character. Is there any way how to do it?


回答1:


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



来源:https://stackoverflow.com/questions/5479728/unescape-unicode-from-input

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!