Answer by Niklas B. for UTF-8 Error in Ruby
The problem is that your string contains non-UTF-8 characters, but seems to have UTF-8 encoding forced. The following short code demonstrates the issue:a = "\xff"a.force_encoding...
View ArticleUTF-8 Error in Ruby
I'm scraping a few websites and eventually I hit a UTF-8 error that looks like this:/usr/local/lib/ruby/gems/1.9.1/gems/dm-core-1.2.0/lib/dm-core/support/ext/blank.rb:19:in`=~': invalid byte sequence...
View Article
More Pages to Explore .....