That code would only guess wrong if all of the following are true:
In other words, that code is very reliable.
In reply to Re^2: What's the best way to detect character encodings, Windows-1252 v. UTF-8? (Areas of confusion)
by ikegami
in thread What's the best way to detect character encodings, Windows-1252 v. UTF-8?
by Jim
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |