[JDEV] Problem with accentuation...

Maciek Borowka mborowka at ifaedi.insa-lyon.fr
Thu Mar 15 06:54:01 CST 2001


As far as I know konverse IS actually broken (sorry Seth ;) :
you need just to modify the file dlgchat.cpp, line 140
t->getChildNode("body")->setValue(stuffToSay->text());
write:
t->getChildNode("body")->setValue(stuffToSay->text().utf8()); (i don't
remember exactly the function, take a look at qt reference manual)

and recompile the client. It should work ;))

/M.Aciek

On Thu, 15 Mar 2001 07:33:26 -0500 Daniel Veillard wrote:

> 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/
> 
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev




More information about the JDev mailing list