What is the default encoding for HTML and XML?

Joe Sam Shirah

Through HTML 3.2, the eight bit standard was ISO 8859-1. As of HTML 4.0, the default document character set is Unicode. For XML, the absolute default is UTF-8. However, a Byte Order Mark ( BOM ), if present, may indicate encoding from UTF-8 through UTF-32, including big and little endian. For both, external encoding declarations may be present to override the default.