[Standards] JID Escaping

Robin Redeker elmex at x-paste.de
Fri Jul 20 13:20:29 UTC 2007


On Fri, Jul 20, 2007 at 02:41:32PM +0200, Mats Bengtsson wrote:
> 
> >>But then the XEP is wrong since it includes the "/" character to be 
> >>> escaped.
> >No its not, it is specifying escaping of the node portion of the JID, it 
> >specifically says you must not escape the resource.
> >
> 
> It is since you cannot uniquely separate the JID into its 
> node+domain+resource parts.
> You cannot tell which the node part is. In my example
> 
> User JID: mats at home.se/coci at home.se/mats at home.se/coci
> 
> the node part may be: mats\40home.se\2fcoci\40home.se\2fmats
> The problem is escaping both the "@" and "/" and be able to uniquely 
> identify the
> node+domain+resource parts of a JID. I think you can allow to escape either 
> of these characters but not both.

If you installed some mind-reading device in the users computer
you could determine what the user meant :-)

Anyway, it's not defined how to escape a full JID, it's just defined how
to escape the _node_ part of a JID. The client has to ask for the
nodepart in a seperate entry box I guess (or use a MindReader(tm)).

What do you need JID escaping for btw.?


Robin



More information about the Standards mailing list