[JDEV] Problem with accentuation...

Daniel Veillard veillard at redhat.com
Thu Mar 15 06:33:26 CST 2001


On Thu, Mar 15, 2001 at 11:28:34AM +0000, José Nuno Coelho Sanarra Pires wrote:
>  I would like to ask the following question:
> 
>  How's Jabber's server support with accentuation? Every time I use a client 
> (JabberApplet, konverse) and I send some accents (like in áÁéÉíÍóÓ - 'a', 
> 'e', 'i' and 'o' acute), the server shuts down the connection accusing an 
> invalid XML. Should it be a matter for all these clients or for the server?

  I think I already answered last week on something similar.
i bet the problem is that your client code is broken. It doesn't
indicate an encoding at the beginning of a session, so the parser
(expat if you use the standard server code) follow the XML spec
and guess an UTF8 encoding. Then your client send chars encoded
in ISO-Latin-1 to the server without converting them to UTF8, and
expat find it's not UTF8 and again according to the XML specification
reports that the XML is invalid and refuses to process further.

  Report the bug to whoever wrote your client, it's badly broken !

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard at redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/




More information about the JDev mailing list