samsymons / RedditKit.rb

[Deprecated] A Ruby wrapper for the reddit API
https://redditkit.com/
MIT License
152 stars 26 forks source link

Fixed not being able to retrieve the permalink when it contains unicode characters #29

Closed martydill closed 9 years ago

martydill commented 9 years ago

If you use RedditKit to retrieve a post containing unicode characters, such as http://www.reddit.com/r/RenameMe/comments/1gxyac/이것은_웹_페이지입니다, you won't be able to retrieve the permalink. The call to URI.join() throws an InvalidURIError.

The fix is to encode the URL before passing it to URI.join().

samsymons commented 9 years ago

Nice, thanks for the fix!