Quantcast
Channel: UTF-8 Error in Ruby - Stack Overflow
Browsing all 2 articles
Browse latest View live

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 Article



UTF-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
Browsing all 2 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>