Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix encoding issues #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix encoding issues #17

wants to merge 2 commits into from

Conversation

terotil
Copy link

@terotil terotil commented Oct 2, 2014

SimpleRSS#unescape blindly forced binary encoding on all the string values causing encoding issues (such as #15) in code using simple-rss. Just remove all the fiddling with encodings. I can't figure out any reason why there would be any need for that.

For some odd reason gemspec wasn't up to date with published gem version. Dunno why's that. Updated it too.

darix referenced this pull request in 5minpause/discourse May 12, 2015
SimpleRss is unreliable with parsing RSS feeds that contain German Umlauts. 
For example this feed http://www.lauffeuer-lb.de/api/v2/articles.xml can't be parsed by SimpleRss. Discourse's logs are full of  

```
Job exception: Wrapped Encoding::CompatibilityError: incompatible character encodings: ASCII-8BIT and UTF-8  
Job exception: incompatible character encodings: ASCII-8BIT and UTF-8
```

The embedding fails because the feed can't be parsed.  

This change forces the encoding which prevents the numerous encoding errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant