Ruby - Strings - Encoding

  • + 0 comments

    def transcode(string) string.force_encoding(Encoding::UTF_8) end