[jdev] XHTML-IM XEP implementation

Peter Saint-Andre stpeter at jabber.org
Thu Jan 4 18:29:18 CST 2007

On Fri, Jan 05, 2007 at 12:35:05AM +0100, Bernhard Zwischenbrugger wrote:
> Hi
> The   depends on "character encoding" only, it hasn't much to do
> with xmpp.

In fact it does:


So the only predefined entities allowed are:

<!ENTITY lt     "&#38;#60;">
<!ENTITY gt     "&#62;">
<!ENTITY amp    "&#38;#38;">
<!ENTITY apos   "&#39;">
<!ENTITY quot   "&#34;">

> If you want to use &nbsp; you have to start the stream with
> "us-ascii" (which is default encoding for html - xhtml has utf-8 as
> default encoding):
> <?xml version='1.0' encoding="us-ascii"?>
> <stream:stream xmlns="jabber:client" to=" ... " version="1.0"
> xmlns:stream="http://etherx.jabber.org/streams" >
> Jabber Servers maybe don't support it.

They don't because the spec allows only UTF-8:



More information about the JDev mailing list