1

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?

MattiasB
  • 135
  • 2
  • 12

2 Answers2

1

Hmm, try to add this

export LC_ALL="en_US.UTF-8"

to your ~/.profile, ~/.bash_profile or equivalent. It worked here!

Carlos Agarie
  • 3,952
  • 1
  • 26
  • 38
1

Looks like there is no solution to avoid this Error without adding encoding line

Add "# coding: utf-8" to all files

Community
  • 1
  • 1
fl00r
  • 82,987
  • 33
  • 217
  • 237