Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a1ba7a91d77885bb32e097877c0fafbcc0df22d0
Ticket: 3466099fffffffffffffffffffffffffffffffff
BOM in Unicode
User & Date: nijtmans on 2012-03-08 03:37:46
Changes

  1. icomment:
    So, now we have 3 attempts in this branch. Thanks!
    
    However, I'm not satisfied with any of them, although
    up to now sebres' one was the most clever.
    
    Currently I am thinking about building it in
    the channel code: something like a channel
    option "-checkbom true", which has the effect
    that the channel first waits for the next 3
    bytes, and checks if it is the BOM. If so,
    it outputs utf-8 BOM and switches
    encoding to utf-8, otherwise continue
    as before. Advantage: the channel
    code has access to the binary
    buffer, so doesn't need to do
    so much trickery.
    
    Disadvantage: A new channel
    option needs a TIP.
    
    
  2. login: "nijtmans"
  3. mimetype: "text/plain"
  4. username: "nijtmans"