Is there any effective difference between
Content-Encoding: UTF-8
Content-Type: text/html; charset=utf-8
?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Optional parameter
charsetmakes sense only for text-based content (Content-Typesliketext/plain,text/html, and such). Not all messages are text.Content-Encodingmeans that the whole body has been encoded in some way (usually compressed). Typical values for this header aregzipanddeflate. The recipient of this message should decode (e.g. ungzip) the body to get the original message.I’m not even sure if
UTF-8makes any sense as a value for theContent-Encoding.