[jdev] Escaping JID using XEP-0106

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


Matthias Wimmer wrote:
> Matthias Wimmer schrieb:
>> The resource is allowed to contain '@' as well as '/'. Everything behind
>> the first '/' character in a JID is the resource.
> 
> ... but this has nothing to do with XEP-0106 BTW.
> 
> XEP-0106 is about mapping non-JID addresses in a JID. e.g. if you have a
> E-Mail address, that cannot map directly in a JID you will use XEP-0106.

Basically, yes. The idea for native XMPP addresses is that people might
want them to look the same as their email addresses. So if your email
address is d'artagnan at example.com then you might want your JID to look
the same. But we can't do that natively in XMPP because single quote is
not allowed in a node identifier, so we need an escaping mechanism,
which is XEP-0106. So a JID of d\27artagnan at example.com would be
presented as d'artagnan at example.com even in a pure XMPP system.

Peter

-- 
Peter Saint-Andre
XMPP Standards Foundation
http://www.xmpp.org/xsf/people/stpeter.shtml

-------------- 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/8bab438f/attachment-0002.bin>


More information about the JDev mailing list