[JDEV] character encoding in jabber protocol

Matthias Wimmer m at tthias.net
Tue Aug 6 03:30:40 CDT 2002

Hi Andreas!

Andreas Ames wrote:

>I was under the impression, that jabber requires the use of utf-8
>encoding (on the wire) but can't seem to find any reference to that
>(not even in the rfc).  Furthermore I found in the 1.4.2 source that
>expat is instantiated with XML_CreateParser(*NULL*) instead of "UTF-8"
>as I expected.  Are there other encodings than utf-8 allowed?
Why not just trying? I just tested it with a telnet session to my 
server's port 5222. When I start the session with <?xml version='1.0' 
encoding='ISO-8859-1'?> I can send messages that encode their content in 
But what you get back from the server is always UTF-8 ... and I wouldn't 
expect that it works with every Jabber server even if it is correct XML.

Tot kijk

Fon: +49-700 77007770		http://matthias-wimmer.de/
Fax: +49-89 312 88654		jabber://mawis@charente.de

More information about the JDev mailing list