Add encoding: utf-8 to fix error while importing#6
Conversation
Error: invalid multibyte char (US-ASCII)
|
Hey, thanks for sharing your caring! I believe you could also set the Let me know if that works! |
|
That will probably work, but this seems a bit more universal. I would rather not have to set the RUBYOPT environment on every production server specifically for this gem.. |
|
Hmm, how does the whole Ruby eco work around this without polluting every file with explicit encoding comments? I've so far always set |
|
Yes it's triggered by the "ö". Ruby 2.1 (which is installed on the server) should not have this bug, but strangely I still get the error. Luckily, only this file triggers the error, so this single line should fix it for everyone. I have no clue on how other Ruby projects handle this, generally it seems not to be a problem, as there are very little files which have special characters. However I recall seeing the same line in Rails localization files. |
Error: invalid multibyte char (US-ASCII)