[jdev] Escaping JID using XEP-0106

Tomasz Sterna tomek at xiaoka.com
Thu Jun 28 10:13:37 CDT 2007


Dnia 27-06-2007, śro o godzinie 15:34 +0400, Sergei Golovan napisał(a):
> I didn't see any XMPP client, which requires to enter node and server
> separately in send message dialogs (I did see clients which asks for
> chatroom names).

Just because others had teken the easy path (for developer, not the
user), doesn't mean you should also.


> In general, I can show unescaped JID. But what's the idea of XEP-0106 then?

To allow inserting characters disallowed by RFC into JID parts and
transfer them on the wire.


> Unfortunately, it means that to be able to send message to such a
> strange JID the user has to khow how to escape it. Should users read
> XEPs? :)

No. Machines (for example your application) should do the escaping.


Maybe if you could explain the use-case which you need the escaping for,
we could find a reasonable solution for your application.



-- 
Tomasz Sterna
Xiaoka Grp.  http://www.xiaoka.com/




More information about the JDev mailing list