質問

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