Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f40f2ba9caad9b38a95959804dd4d2f2af8e8c65
Ticket: 219314ffffffffffffffffffffffffffffffffff
tcl8.2.2 can not handle iso2022-jp strings
User & Date: hobbs on 2001-10-19 01:11:06
Changes

  1. icomment:
    Logged In: YES 
    user_id=72656
    
    OK, if I translate this right, this can be massaged like so:
    
    set a "\u4e4e\u4e5e\u4e5f"
    set b [encoding convertto iso2022-jp $a]
    
    This makes b == "\x1b(B\x1b$@8C8pLi"
    
    looking at iso2022-jp.enc, that means there is a signal
    to use iso8859-1 immediately followed by the signal to
    use jis0208.  This is confirmed when I get the same
    chars in tkcon on Windows by just getting the value of:
    
    encoding convertfrom jis0208 8C8pLi
    
    I'm now trying to figure out why the escape driven encoding 
    doesn't work right...
    
    
  2. login: "hobbs"
  3. mimetype: "text/plain"
  4. username: "hobbs"