[jdev] Escaping JID using XEP-0106

Peter Saint-Andre stpeter at jabber.org
Wed Jun 27 17:15:01 CDT 2007


Sergei Golovan wrote:
> Hi!
> 
> Could someone clarify how to escape the following JID (and to split it
> into node, server and resource)?
> 
> user at jabber.org/user at jabber.org/resource

Why are you showing full JIDs to users? What is the use case for showing
this?

> I could do it in two ways:
> 
> 1) user
>    jabber.org
>     user at jabber.org/resource
> 
> 2) user\40jabber.org\27user
>    jabber.org
>   resource
> 
> XEP-0106 doesn't give an exact way of escaping such a JID. And if 1)
> or 2) is preferrable then there's no way (or it's not easy) to send a
> message to another JID.

Use bare JIDs?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 7358 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20070627/db704602/attachment-0002.bin>


More information about the JDev mailing list