in reply to Re^4: convert a string(which contains the contents of a file) into UTF-8 encoding
in thread convert a string(which contains the contents of a file) into UTF-8 encoding

While iso-latin-1 includes the Copyright symbol (©, U+00A9), it doesn't include the Trademark symbol (™, U+2122). Seeing as it's impossible to represent them in iso-latin-1, it's impossible to convert them from iso-latin-1 to UTF8. Maybe you are using Microsoft's derivative of iso-latin-1, cp1252?

Update: I initially stated the Copyright symbol wasn't in iso-latin-1 either. Fixed.

  • Comment on Re^5: convert a string(which contains the contents of a file) into UTF-8 encoding