I have a rogue gem (omniauth) which provides a hash of data containing ASCII-BIT8 strings that I would like to convert into UTF.
How can I force all of the string ele
try this:
json_string = not_encoded_hash.to_json.dup.encode("UTF-8") encoded_hash = JSON.parse(json_string).with_indifferent_access