|
|
|
|
|
by joncrocks
3479 days ago
|
|
Which, ASCII or UTF-8? If you have a file without a BOM, you have to pick one. As every 8 bit combination is an ASCII character of some kind, you can interpret every UTF-8 character as a combination of ASCII characters. And what you output will be different to what was input (unless you restrict yourself to single byte UTF-9 characters). Without some other way of indicating the encoding format of a file, a BOM can be a tool to indicate "It's probably encoded using UTF-X". |
|