Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5c9047a415d6f2339e0ce88fc3962514adb08c89
Ticket: 840577ffffffffffffffffffffffffffffffffff
Problem in reading nonascii character.
User & Date: dkf on 2003-11-12 23:09:04
Changes

  1. assignee changed to: "dkf"
  2. closedate changed to: "2003-11-12T16:09:04"
  3. closer changed to: "dkf"
  4. icomment:
    Logged In: YES 
    user_id=79902
    
    You're in a twist over encodings it seems.  What character
    is that \200 meant to be?  What is your system encoding? 
    (Use [encoding system] to find that out.)  What platform are
    you on?
    
    Hmm.  Guessing that your system encoding is UTF-8 (which
    might be the case on MacOSX and might be true elsewhere too)
    you're going to have to use [fconfigure] to help out,
    perhaps like this:
      fconfigure $fd -encoding iso8859-1
    Another alternative is to put the channel into binary mode:
      fconfigure $fd -translation binary
    I'd need to know your situation in detail to tell you which
    is best.
    
    
  5. login: "dkf"
  6. mimetype: "text/plain"
  7. priority changed to: "1 Zero"
  8. resolution changed to: "Invalid"
  9. status changed to: "Closed"
  10. subsystem changed to: "44. UTF-8 Strings"
  11. username: "dkf"