Skip to main content
Edited for clarity. Grammar fixes.
Source Link
KatieK
  • 13.9k
  • 19
  • 79
  • 91

In my rails app i'mI'm working with rssRSS feeds from all around the world, and some feeds have links that are not in UTF-8, the. The original feed links are out of my control, and in order to use them in other parts of the app, they need to be in UTF-8.

tl;dr: how do iHow can I detect encoding and convert to UTF-8

also this is in ruby (on rails)?

In my rails app i'm working with rss feeds from all around the world, and some feeds have links that are not in UTF-8, the original feed links are out of my control, and in order to use them in other parts of the app, they need to be in UTF-8.

tl;dr: how do i detect encoding and convert to UTF-8

also this is in ruby (on rails)

In my rails app I'm working with RSS feeds from all around the world, and some feeds have links that are not in UTF-8. The original feed links are out of my control, and in order to use them in other parts of the app, they need to be in UTF-8.

How can I detect encoding and convert to UTF-8?

Source Link
Hayk Saakian
  • 2k
  • 2
  • 18
  • 32

Force strings to UTF-8 from any encoding

In my rails app i'm working with rss feeds from all around the world, and some feeds have links that are not in UTF-8, the original feed links are out of my control, and in order to use them in other parts of the app, they need to be in UTF-8.

tl;dr: how do i detect encoding and convert to UTF-8

also this is in ruby (on rails)