Daily Archives: December 7, 2011

Solving Latin1 and UTF8 errors for good in Ruby

Update: I haven’t tested it fully, but @eevee has a shorter suggestion that seems to work: Tell the mysql driver that you’re getting BINARY back, then use .force_encoding(“UTF-8”)? In a Rails application you can do this by setting encoding: binary … Continue reading

Posted in Blog, Noteworthy, Ruby | 6 Comments