comp.lang.tcl
[Top] [All Lists]

channel encoding

Subject: channel encoding
From: yahalom
Date: Sat, 31 May 2008 06:54:32 -0700 PDT
Newsgroups: comp.lang.tcl

I have an xml request that I am getting over a tcp socket. I do not
know in advance what will be the xml encoding. when I configure my
channel with:
fconfigure $sock -encoding utf-8
on both client/server) I get the xml properly.
but what will happen if the socket/xml is iso8859-8? or other
encoding?
how can I work with the socket without forcing encoding and then use
the proper encoding based on the xml header tag? is there a way to
know what encoding my client use (without agreeing in advance)?  do I
need to have a server listener per encoding?

<Prev in Thread] Current Thread [Next in Thread>
  • channel encoding, yahalom <=
Privacy Policy