2.6. Java中的字符编码

Java中第三方库函数可以用来动态地检测字符的编码类型:

详见:java - What is the most accurate encoding detector? - Stack Overflow