Last Updated: February 25, 2016
·
1.247K
· rebyn

Working with Unicode in Ruby

Sometimes you'll encounter invalid multibyte char (US-ASCII)</code> if there are Unicode characters in your .rb</code> files. Well, there's a gem to fix that: Magic Encoding

$ gem install magic_encoding
$ magic_encoding

2 Responses
Add your response

I prefer to manually add # coding: utf-8 into files.

over 1 year ago ·

Default in Ruby 2.0

over 1 year ago ·