This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23075 - The section "Processing model" contains a sentence as below - stating that the content of the HTTP header "Last-Event-ID" is to be encoded as UTF-8. To my knowledge, most HTTP servers actually always [...]
Summary: The section "Processing model" contains a sentence as below - stating that th...
Status: RESOLVED WORKSFORME
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-27 07:56 UTC by contributor
Modified: 2013-08-27 22:00 UTC (History)
2 users (show)

See Also:


Attachments

Description contributor 2013-08-27 07:56:26 UTC
Specification: http://www.w3.org/TR/eventsource/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top
Referrer: 

Comment:
The section "Processing model" contains a sentence as below - stating that the
content of the HTTP header "Last-Event-ID" is to be encoded as UTF-8. To my
knowledge, most HTTP servers actually always use ISO-8859-1 to encode HTTP
headers and it is not really something which can be controlled per the
individual header.


5 Processing model
...
If the event source's last event ID string is not the empty string, then a
Last-Event-ID HTTP header must be included with the request, whose value is
the value of the event source's last event ID string, encoded as UTF-8.
...

Posted from: 83.151.148.133
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36
Comment 1 Ian 'Hixie' Hickson 2013-08-27 22:00:00 UTC
We can't use ISO-8859-1, since it doesn't support all the characters that EventSource supports.

In general, HTTP headers are just byte sequences. They can use any encoding you want, you just decode the byte sequence accordingly.