I had similar woes. The way to identify encodings is not guaranteed unless a (knowledgable) human is employed. Corion proved that above. But check the comment there how firefox and chrome tackle this issue.
In reply to Re: Detect wrong characters
by bliako
in thread Detect wrong characters
by LexPl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |