The following hash is causing a syntax error. I assume it is because of the funky characters.
Any way to fix this? I'm using macvim, in case that matters.
{
:en => ['English', 'en_US'],
:es => ['español', 'es_MX'],
:fr => ['français', 'fr_FR'],
:de => ['Deutsch', 'de_DE'],
:ru => ['русский', 'ru_RU'],
:zh => ['中国的', 'zh_CN'],
:ar => ['العربية', 'ar_AR'],
}
If this is Ruby 1.9, then you can set the magic comment to tell Ruby this is a UTF8 file instead of ASCII:
How does the magic comment ( # Encoding: utf-8 ) in ruby work?
You could always escape your unicode values.