Input Encoding Detection

Detection Methods

Encoding detection is mostly a guess work.

  • BOM is obviously the most useful in detecting the input incoding stream.
  • XML has encoding declaration.
  • HTML has an encoding sniffing algorithm.

Java Libraries