Tag: character-encoding Convert any string to UTF-8 without knowing the original character set, or at least give it a shot. How can I get rid of the character « from the beginning of a file? how to tell whether a text file contains invalid utf8 unicode/binary