On ruby 1.8.7 I had no problems with swedish chars ÅÄÖ but now on ruby 1.9.2 this exception comes up. Strangley enough it does not appear on my Ubuntu machine.
Can it be fixed without Magic encoding or putting #encoding utf-8 on top of every ruby file with Swedish chars?