SMYCK

a blog by John-Paul Bader

Tag Archives: iconv

Files with mixed and invalid Encodings in Ruby

Posted on May 13, 2011 by hukl

Recently I encountered a file which mostly contained UTF-8 characters. I could read the file and even throw it at Nokogiri and there was no problem. When I wanted to preprocess the content of the file with gsub ruby raised this Exception: invalid byte sequence in UTF-8 (ArgumentError) Now what to do? There aren’t many […]

► 1 Comment
Posted in: english, ruby | Tagged: encoding, iconv, programming, ruby

@hukl on twitter

Github Profile

Smyck Color Scheme

Wordpress Theme

Recent Posts

  • How to install Photoview on FreeBSD
  • How to Add Caching to Your Website
  • How To Record a Good Sounding Podcast
  • My Favorite Shoe – és Accel
  • Pizza Dough
  • Current Home Recording Setup
  • Building My Own Custom Telecaster Guitar
  • Looking For A New Job
  • Cheap and Good Photo / Video Lights
  • How to Recover a Forgotten Password

Creative Commons License
The content of this blog is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.