Frage

Every HTML file has to set up charset=XXX option. when and who will use this option value? It used for decoding when a client browser read the original file or used for encoding when generate the original file by the programmer who wrote it?

The encoding and decoding made me confused.

War es hilfreich?

Lösung

Both. The option tells the client browser what character set was used in the encoding when the file was generated, and therefore it also tells the client browser what character set to use when decoding.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top