Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Charset is not recognized when specified as quoted string

Closed / Fixed2849860fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 17 years ago
Descriptionplain2009-09-03 11:00:40
The http package may not correctly perform encoding conversion when the charset is specified as a quoted string, e.g. when the Content-Type header is specified as; text/xml; charset="UTF-8".

In case of the example above, the charset element in the state array ends up getting the value "utf-8" (including the quotes). This is interpreted by http::CharsetToEncoding as binary, resulting in no encoding conversion taking place.

The way I read RFC 2616 it is legal for charset to be specified as a quoted string.
dkfplain2009-09-04 19:43:03
Agreed. My reading of the RFC also leads me to that conclusion.
dkf Ticket [2849860fff]: 1 change [History diff]2009-09-04 19:43:08
sbronplain2009-09-06 04:48:33
Example URL that returns charset as a quoted string: http://rss.groups.yahoo.com/group/tdom/rss
dkfplain2009-09-11 04:32:47
allow_comments - 1
dkfplain2009-09-11 04:35:51
(fixed for 8.5 and HEAD)
Log in (anonymous is fine) to add a comment.