rufio wrote: > on Thu, 17 Jul 2003 14:22:23 +0100 "John Wilson" <[EMAIL PROTECTED]> > wrote: > >> rufio wrote: >>> on Thu, 17 Jul 2003 07:44:01 +0100 "John Wilson" <[EMAIL PROTECTED]> >>> wrote: >>> >>>> rufio wrote: [more stuff] > I don't see your problem. All you have to do is split what changes and > what stay constant: generating string containing a XML messge is > constant so framework does that; > encoding may change, and besides it's rather low level issue, so > transport layer should encode the message.
No you don't see the problem I'm afraid. The actual Java strings produced are different for different encodings. For UTF-8 and UTF-16 everything is just fine and the standard Java Writer implementations will do the encoding. For US-ASCII and ISO 8859-1 the XML writer has to be aware of the encoding being uses and generate the appropriate character references for Unicode characters which are not part of the character set used for the encoding. You can't write a general XML write without knowing what encoding is being used. John Wilson The Wilson Partnership http://www.wilson.co.uk