Possible Duplicate:
Ruby - UTF-8 file encoding
I'm using UTF-8 all the way and want to help the ruby interpreter to read my files.
Therefore I put # encoding=utf-8
at the start of my ruby code like this:
#!/usr/bin/env ruby
# encoding=utf-8
But now and then, I see other variants:
bundle gem NAME
inserts # -*- encoding: utf-8 -*-
(into NAME.gemspec). The gem magic_encoding uses this line, too.
What is the recommended way?
# encoding = utf-8
# encoding: utf-8
# -*- encoding: utf-8 -*-