I only know from http header meta field, it could be assigned html encoding. I am not sure whether there are any other ways to assign html encoding? Like HTTP response header? Thanks!
I only know from http header meta field, it could be assigned html encoding. I am not sure whether there are any other ways to assign html encoding? Like HTTP response header? Thanks!
The relevant RFC would tell you.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Hmm, I don't know maybe the one about HTTP? And/or HTML?
Content-encoding would be your best bet.
Content-Encoding and Accept-Encoding are essentially just used for compression during the transfer. I don't know what you mean by "HTML encoding" but I don't see how gzip and deflate could possibly be construed as "HTML encoding". Even if one's first language is not english.
Are you looking for something as simple as Content-Type?
What exactly are you trying to do, and what do you mean by "HTML encoding"?
-core
I assumed they were talking about byte encoding of the HTML (text that is), ie UTF-8 etc.
Ohhh the character set. If that's what he means, then that is simple:
Content-Type: text/html; charset=utf-8