Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 97e4ff4785a4863052681a29c756680b305f2b5d
Ticket: 07b3bc4cbe2b2ab03f91e716a40b5c4a6be57a7c
bug in "encoding convertto utf-8"
User & Date: dkf on 2013-10-22 14:38:49
Changes

  1. comment changed to:
    I believe I found a bug in the "encoding convertto utf-8" command.
    
    It converts the letter "Ø" (Uppercase O with a slash, \u00d8) to wrong code, at least if I write the string to a file without "fconfiguring" the file.
    
    The bug drove me crazy today, as I couldn't make my tlc-generated and utf-8-encoded xml file to parse.
    
    I resolved the problem by using fconfigure and skip the encoding of each individual string.  It might be that the current file configuration was incopatible with the utf-encoded string.  I haven't studiet this in detail, but fortunately I found a woraround to the problem.
    
  2. icomment:
    Why were you using <tt>encoding convertto utf-8</tt> during the process of producing output to a channel? It's normally enough to just <tt>chan configure</tt> it and then write characters. Or were you double-encoding it (which would be a <i>script</i> bug)?
    
  3. login: "dkf"
  4. mimetype: "text/html"
  5. username: "dkf"