|
|
|
|
|
by tialaramex
2137 days ago
|
|
But this involves a sleight of hand where, at first, you deny knowing the encoding so as to require we can't decode it, and then, you declare you did know the encoding so as to declare the results "destroyed" because now you can't decode them. Just tell the text processing tool the encoding. Or, don't use text. If you resent having to pick an encoding, it still works - just the encoding is UTF-8 because duh, of course it is. |
|
In practice, if this comes up at all it's a huge mistake to be destroying your data. Curse the person who wrote the tool in the middle that eats data, and don't be them.
Even outright throwing errors is better than replacing characters and expecting whoever looks at the data on the other end to notice.