My application must handle some international characters, namely ä, ü, ö and ß, which are still ascii.
When I tested the ruby behavior when working with these characters, I got this error:
test.rb:1: invalid multibyte char (US-ASCII)
test.rb:1: invalid multibyte char (US-ASCII)
for this code:
puts "i like my chars: ä, ü, ö and ß!"
But strange: when using Interactive Ruby Shell I do not get errors!
EDIT: in my application, I am extracting data from an external api. The above code is just an example!
source
share