channel encoding



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



Relevant Pages

  • Re: encoding questions
    ... I have an xml request that I am getting over a tcp socket. ... know in advance what will be the xml encoding. ...
    (comp.lang.tcl)
  • Re: encoding questions
    ... I have an xml request that I am getting over a tcp socket. ... know in advance what will be the xml encoding. ... know what encoding my client use? ...
    (comp.lang.tcl)
  • Re: Want Input boxes to accept unicode strings on Standard Window
    ... If ther encoding is not specified, then the encoding is assumed to be ... Ah, UTF-8. ... That would be wrong according to the standard. ... when producing XML files. ...
    (microsoft.public.vc.mfc)
  • Re: tDOM doesnt support encoding=ASCII?
    ... a Tcl channel then Tcl will ... specifically asked for binary encoding), so any XML encoding declaration ... but when tdom sees it it is almost certainly UTF-8. ...
    (comp.lang.tcl)
  • RE: SP1 Problem SOAPException doesnt return quote and Umlaute correcty
    ... I suspect that there is an encoding issue in the way you are loading the ... Is there an inconsistency between the XML encoding mark up and the ... Found out .net web service clients are just as helpless with handling these ... If an exception is raised in the web service method saying i.e. 'The method ...
    (microsoft.public.dotnet.framework.webservices)