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
Written by Tu Hoang
Related protips
2 Responses
I prefer to manually add # coding: utf-8
into files.
over 1 year ago
·
Default in Ruby 2.0
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#