Overview
Artifact ID: | 40757fb020db0b4b27b7932d4c7a391c11efe5d0 |
---|---|
Ticket: | 2998307fffffffffffffffffffffffffffffffff
Can't display UTF when charset is not passed by the server |
User & Date: | anonymous 2014-01-03 14:59:06 |
Changes
- closer changed to: "nobody"
- comment changed to:
$ tclsh % pa re http 2.7.5 % namespace children ::http ::oo ::tcl % http::config -accept */* -proxyfilter http::ProxyRequired -proxyhost {} -proxyport {} -urlencoding utf-8 -useragent {Tcl http client package 2.7.5} % namespace children ::http ::oo ::tcl % set http::defaultCharset utf-8 utf-8 % set token [http::geturl http://bash.org.pl/rss] ::http::1 % upvar 0 $token state % set state(charset) utf-8 This url is a simple RSS feed using the utf-8 charset, but not passing it in the Content-Type header. It tells me that it actually is UTF, but it isn't. After that I try to display it using http::data, but it dispalys incorrectly - in this case, polish UTF chars look like they're readen like ISO.
- icomment:
Still seems to apply in the current version Most importantly, http seems to completely ignore -binary true for charset mangling. I always get mangled UTF-8 out of TclHTTP, while the same file downloads correctly using TclCurl and wget from the command line. Please fix.
- login: "anonymous"
- mimetype: "text/plain"
- severity changed to: "Minor"