开发者

Ruby-readability gem encoding

开发者 https://www.devze.com 2023-02-07 16:32 出处:网络
When I use the ruby-readability gem, characters, which were originally inside the links are displayed in wrong encoding.

When I use the ruby-readability gem, characters, which were originally inside the links are displayed in wrong encoding.

The problem occurs if the page in utf-8 charse开发者_StackOverflowt, and contains no-latin characters. At the same time on the local machine everything works fine, although the system locale and version of Ruby on the server and on the local machine is the same.

I did not found any code in the ruby-readability sources, because of which this may occurs. who knows what the problem is? or maybe someone knows replacement to this gem? sorry for my bad english

0

精彩评论

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

关注公众号