开发者

converting html entity to utf-8 character

开发者 https://www.devze.com 2022-12-26 07:38 出处:网络
I am having this problems in grails where I am writing a string from the datab开发者_如何学运维ase into an xml file using StreamingMarkUpBuilder. The xml file displays the string as htmlentities &

I am having this problems in grails where I am writing a string from the datab开发者_如何学运维ase into an xml file using StreamingMarkUpBuilder. The xml file displays the string as htmlentities &#x30b3 &#x30d4 &#x30fc, how can I convert them to be printed as コピー?

Thanks!


I found a solution for this, I used OutputStreamWriter instead of FileWriter to enfored encoding to UTF-8

0

精彩评论

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