vwdr4g
Last Updated: February 25, 2016
·
1.029K
· 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

2752

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

over 1 year ago ·
2771

Default in Ruby 2.0

over 1 year ago ·