1

The encoding of content is told by the header field "ContentType". But how do I know the encoding of this header field? I mean the characters "ContentType" is encoded in UTF8 or sth else?

Alexis
  • 970
  • 2
  • 19
  • 43
  • possible duplicate of [How to encode UTF8 filename for HTTP headers? (Python, Django)](http://stackoverflow.com/questions/1361604/how-to-encode-utf8-filename-for-http-headers-python-django) – CodeCaster Jan 23 '14 at 08:25

1 Answers1

1

Header field values are essentially US-ASCII, unless the definition of the header field says something else (right now, node does).

One way to encode non-ASCII characters is to use an overlay encoding such the one defined in RFC 5987 (but the header field definition still needs to opt into that).

Julian Reschke
  • 37,619
  • 8
  • 86
  • 92