Artifacts Associated With Ticket 2998307
Ticket change [0fa9b71b07] (rid 94828) by samaelszafran on 2010-05-07 19:14:15:
- assignee initialized to: "patthoyts"
- cmimetype initialized to: "text/plain"
- comment initialized 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. - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "samaelszafran"
- subsystem initialized to: "29. http Package"
- title initialized to:
Can't display UTF when charset is not paseed bythe server
- type initialized to: "Bug"
Ticket change [773726b3bc] (rid 89742) by samaelszafran on 2010-05-08 02:18:24:
- icomment:
I just forgot to mention - I've got TCLLib compiled from FreeBSD 7.2-STABLE Ports.
- login: "samaelszafran"
- mimetype: "text/plain"
- username: "samaelszafran"
- icomment:
Ticket change [40757fb020] (rid 136356) by anonymous on 2014-01-03 14:59:06:
- 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"
Ticket change [8d8911a06c] (rid 136373) by dkf on 2014-01-05 16:04:38:
- login: "dkf"
- mimetype: "text/plain"
- title changed to:
Can't display UTF when charset is not passed by the server
Ticket change [87306e4fec] (rid 136374) by dkf on 2014-01-05 16:14:22:
- icomment:
If they're read like ISO8859-1 but you know they're “really” UTF-8, <code>encoding convertfrom utf-8</code> will do the conversion.
- login: "dkf"
- mimetype: "text/html"
- username: "dkf"
- icomment:
Ticket change [de91ea9fbb] (rid 204058) by kjnash on 2022-09-10 12:08:55:
- icomment:
Fixed in commit [d150b47456], branch http-bugfixes-2022H2. New http::geturl option -guesstype allows detection of XML files and their encoding when the server supplies no content-type. By default this option is off.
- login: "kjnash"
- mimetype: "text/x-fossil-plain"
- icomment:
Ticket change [ee736e1a3d] (rid 204062) by kjnash on 2022-09-10 12:18:45:
- closedate changed to: "2459833.01303196"
- closer changed to: "kjnash"
- login: "kjnash"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"