Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0fa9b71b072f375454c02c6cba4017c4e4f6adde
Ticket: 2998307fffffffffffffffffffffffffffffffff
Can't display UTF when charset is not passed by the server
User & Date: samaelszafran on 2010-05-07 19:14:15
Changes

  1. assignee changed to: "patthoyts"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "samaelszafran"
  10. subsystem changed to: "29. http Package"
  11. title changed to:
    Can't display UTF when charset is not paseed bythe server
    
  12. type changed to: "Bug"