|
|
|
|
|
by account42
2177 days ago
|
|
That is a reasonable approach if you know that what you are decoding is supposed to be UTF-8. If you don't know the text encoding because there is no information to indicate it (or you don't trust that information to be correct) then you will have to guess and "decode as UTF-8 for valid UTF-8, use some legacy encoding otherwise" is a common approach (used e.g. by many text editors). |
|