Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d83e73431ee3b2f3a8fb44f7c81e8737558e12f8
Ticket: 3466099fffffffffffffffffffffffffffffffff
BOM in Unicode
User & Date: sebres on 2012-03-02 17:05:15
Changes

  1. icomment:
    The solution with cpBomTable is although good, but theoretically the parameter 'encodingName' could be another single byte encoding such iso8859-X, etc.
    So the prepared array 'cpBomTable' should be greater and it will be no more practical.
    I see 2 solution here:
      1) read 4 first characters binary, if not BOM convert its to given 'encodingName', set channel encoding to 'encodingName', read further.
      2) read 1 first characters in utf-8, if not BOM seek to start, set channel encoding to 'encodingName', read further.
    
    I'm trying now the solution number 1.
    
    
  2. login: "sebres"
  3. mimetype: "text/plain"
  4. username: "sebres"