RE: [logs] Charset selection (Was: Re: EventLog library)

From: Andrew Ross (andrewat_private)
Date: Thu Jan 09 2003 - 19:56:18 PST

  • Next message: Kyle R. Hofmann: "Re: [logs] RE: syslog/tcp (selp)"

    If we want to do any other character set apart from ASCII or 
    want to send binary data in the message then the only option 
    I can see is a length field. I don't know enough about DBCS 
    to work out how to do it using a delimiter. Any ideas?
     
    If a length field was to be used, a 4 chr ASCII hex value 
    would allow for 65535 bytes. A known fixed header would be a 
    good idea to identify the message from the outset.
     
    SELP 1234 <PRI>...
     
    1234 is the length from 0000 to FFE3 (65507)
     
    But... Then it doesn't look anything like 3164 :-(
     
    If we were to send binary data using a delimiter, then there 
    should be a recommended way of encoding it in the standard.
    
    Like BINARY01=laskdjlksdjalksdjlaksdjalskdj
     
    Where the 01 specifies the encoding method. 01=Base64
     
    The binary field can be part of the message text, but 
    actually mentioning it in the spec would be very helpful to 
    avoid all sorts of other implementations.
    
    Andrew
    
    
    _______________________________________________
    LogAnalysis mailing list
    LogAnalysisat_private
    http://lists.shmoo.com/mailman/listinfo/loganalysis
    



    This archive was generated by hypermail 2b30 : Fri Jan 10 2003 - 09:58:33 PST