You are viewing a single comment's thread. Return to all comments →
def transcode(encoded_input_string) encoded_input_string.force_encoding(Encoding::UTF_8) end def transcode_to_ISO_8859_1(encoded_input_string) encoded_input_string.force_encoding(Encoding::ISO_8859_1) end transcode(transcode_to_ISO_8859_1("Bhavana"))
Seems like cookies are disabled on this browser, please enable them to open this website
Ruby - Strings - Encoding
You are viewing a single comment's thread. Return to all comments →