سؤال

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