how can I convert a string, that contains latin1 characters to utf8?
The string is a document, that is opened by open-uri and that contains these special characters.
Best regards
Iconv
require 'iconv'
i = Iconv.new('UTF-8','LATIN1')
a_with_hat = i.iconv("\xc2")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With