Is there any gem which adds # encoding: UTF-8 to each Ruby file automatically?
# encoding: UTF-8
Or is there any other way to prevent from the invalid multibyte cha
invalid multibyte cha
Upgrade to Ruby 2.0, as it makes UTF-8 the default encoding, removing the need for magic comments.