Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f4b524aefafde545cc73e0b73fa791d62ad94d53
Ticket: 3165071fffffffffffffffffffffffffffffffff
http::geturl fails for at least 1 RSS feed
User & Date: patthoyts on 2011-03-07 04:31:12
Changes

  1. icomment:
    Your problem is in handling the encoding. You should probably be setting the file to binary otherwise we apply the channel encoding to the data as we write it to the disk file. In this case you likely later expect it to be utf8.
    
    However, when we retrieve the resource using the http package we handle the encoding as declared on the remote site. In this case there is no http content-encoding header and its type is text/xml so we are treating the inbound stream as iso8859-1. The file internally declares xml utf-8 but we will never look inside the file.
    
    I suggest you use [open $file wb] and see how that works.
    
    
  2. login: "patthoyts"
  3. mimetype: "text/plain"
  4. username: "patthoyts"