Open AlexVPopov opened 11 years ago
I ran into something similar:
From the console:
>> hash[:name]
=> "Gr\xC3\xBCnes St\xC3\xBChlchen"
>> hash[:name].force_encoding('UTF-8')
=> "Grünes Stühlchen"
So I will now iterate through my hash and force-encode all values like described above.
When I try to import a UTF-8 encoded CSV file containing Cyrillic characters, I get this error:
Encoding::UndefinedConversionError in Admin::ShareholdersController#import_csv
"\xD0" from ASCII-8BIT to UTF-8