What character encoding should I use for a HTTP header?
In short: Only ASCII is guaranteed to work. Some non-ASCII bytes are allowed for backwards compatibility, but are not supposed to be displayable. HTTPbis gave up and specified that in the headers there is no useful encoding besides ASCII: Historically, HTTP has allowed field content with text in the ISO-8859-1 charset [ISO-8859-1], supporting other charsets … Read more