Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2009-09-11
04:35 • Ticket [2849860fff] Charset is not recognized when specified as quoted string </... artifact: 1b9e128678 user: dkf
04:32 • Closed ticket [2849860fff]. artifact: 5b5fc51e2c user: dkf
2009-09-06
04:48 • Ticket [2849860fff]: 4 changes artifact: 3e65987d5d user: sbron
2009-09-04
19:43 • Ticket [2849860fff]: 1 change artifact: 33571f38ed user: dkf
19:43 • Ticket [2849860fff]: 4 changes artifact: add8fa8e97 user: dkf
2009-09-03
11:00 • New ticket [2849860fff]. artifact: 18974a38b4 user: sbron

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.