In case I ever need it:*Charset Detector :: Summary. It is emperical (you cannot 100% reliably find out what character set / encoding a file is), but has a good score. A similar problem is detecting the language. There too you can get a good score. –jeroen via: User ShreevatsaR – Stack ...
More...