Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7c501c337e523c0655332d9f03983ca67e2743f7
Ticket: 584603ffffffffffffffffffffffffffffffffff
'encoding convertfrom' causes error messages
User & Date: andreas_kupries on 2002-07-23 23:44:09
Changes

  1. icomment:
    Logged In: YES 
    user_id=75003
    
    Note: This time WriteChars does not block because of the 
    encoding flags. It blocks because Tcl_UTfToExternal is told to 
    convert \342, which is not a complete UTF-8 character.
    
    And it is given \342 to print because that is the result of the 
    [encoding convertfrom] command.
    
    When you do a [puts \342] the system converts this into 
    proper UTF-8 when reading, and this proper UTF-8 is then 
    converted back to \342 for printing, thus no problem.
    
    
    
  2. login: "andreas_kupries"
  3. mimetype: "text/plain"
  4. username: "andreas_kupries"