Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 62116b3af716ccd78583ae3de8fc856d43aca1de
Ticket: 768852ffffffffffffffffffffffffffffffffff
binary format a* $utf8_string - needs u/U
User & Date: dkf on 2004-06-16 05:21:23
Changes

  1. assignee changed to: "dkf"
  2. icomment:
    Logged In: YES 
    user_id=79902
    
    Reevaluating this FRQ indicates that the original code
    should never have worked, but the following should:
    
      set tmp [encoding convertto utf-8 $foo]
      set tmp [binary format a* $tmp]
      set bar [encoding convertfrom utf-8 $tmp]
    Following this, $foo and $bar should be identical, and this
    will hold true for any encoding instead of utf-8 as long as
    all the characters in $foo are representable within that
    encoding.
    
    Given that, I've updated the docs to be clearer and contain
    an example that shows the handling of non-ASCII data. Future
    problems are now "pilot error"...
    
    
  3. login: "dkf"
  4. mimetype: "text/plain"
  5. resolution changed to: "Rejected"
  6. username: "dkf"