I need to get some data via Net::HTTP, it works good by i recieve response in ASCII-8bit. The problem is how to encode this to utf8 and save all non-latin symbols?
With @content.encode('utf-8', 'binary', :invalid => :replace,
:undef => :replace, :replace => '')
i loose all cyrillic symbols
With @content.encode('utf-8', 'binary')
i get "\xCB" from ASCII-8BIT to UTF-8
error
With @content.force_encoding("UTF-8)
i get ������ instead of cyrillic symbols
I can't find answer with google search.
Problem is solved with
here is more complete data