cardmagic / simple-rss

A simple, flexible, extensible, and liberal RSS and Atom reader for Ruby. It is designed to be backwards compatible with the standard RSS parser, but will never do RSS generation.
https://github.com/cardmagic/simple-rss
Other
225 stars 68 forks source link

Different encodings based on containing ' %' #28

Open runephilosof opened 6 years ago

runephilosof commented 6 years ago

I just debugged an issue due to SimpleRSS returning UTF-8 encoded strings when the tag contains ' %' and ASCII-8BIT encoded strings otherwise. Why does it run strings through CGI.unescape when it contains ' %'? It would be nice if all strings were normalized to UTF-8 before returning them.