Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 99100e2c6038838f669e971a0fe6ecffd9eef968
Ticket: 630621ffffffffffffffffffffffffffffffffff
doc that [socket] uses system encoding by default
User & Date: dkf on 2002-10-30 18:45:49
Changes

  1. icomment:
    Logged In: YES 
    user_id=79902
    
    A well-designed protocol will specify what encoding(s) to
    use and how to detect them; leaving it up to chance is a bad
    move, even if it happens to work for the test cases you're
    using.  For example, I think HTTP is actually defined to use
    either ASCII or ISO8859-1 for its headers (I forget which; I
    know bodies are 8859-1 by default) and provides an escaping
    mechanism for using other encodings (this is probably all
    based on MIME message headers.)
    
    Given this, the fact that Tcl's default socket encoding is
    system-specific is no great fault, since that's one of the
    things you should nail down by hand.  IMO, this is not a bug
    at all, or at least not in Tcl...
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. username: "dkf"