Вопрос

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.

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top