vwdr4g
Last Updated: February 25, 2016
·
1.005K
· rebyn
3

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
Say Thanks
Respond

2 Responses
Add your response

2752
520bb4ce077d7e08437a7225c894e680

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

over 1 year ago ·
2771
144314100b686db946ff68c7ae1065d1

Default in Ruby 2.0

over 1 year ago ·