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
Try magic_encoding gem, it can insert uft-8 magic comment to all ruby files in your app.
[EDIT] Having switched to SublimeText now I use auto-encoding-for-ruby plugin.