阅读背景:

如何在Ruby中将字符引用转换为UTF-8字符串?

来源:互联网 

I have some content from feeds. In these feeds, UTF-8 characters are often encoded as character references, ie "å" is "å". To avoid double encoding these in my views (ie "å") I want to convert these back to normal UTF_8 characters. How can I do this in Ruby?I have some content from feeds. In these feeds,




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: