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?
|