[jdev] Escaping JID using XEP-0106
Norman Rasmussen
norman at rasmussen.co.za
Wed Jun 27 06:11:03 CDT 2007
On 6/27/07, Sergei Golovan <sgolovan at nes.ru> wrote:
>
> You're right. And the question is: "How to escape it? Can escaping be
> done unambiguously?"
Yes, but only if you already know the split.
The problem is that if I get alredy escaped JID
> user\40jabber.org\2fuser at jabber.org/resource then I can unescape it
> and show to a user as user at jabber.org/user at jabber.org/resource.
>
> But what to do if a user enters such a JID into a client entry box and
> wants to send a message to it?
You have to provider two entry boxes, or require the the user enter a
pre-escaped jid, and reject the ambiguous jid.
--
- Norman Rasmussen
- Email: norman at rasmussen.co.za
- Home page: http://norman.rasmussen.co.za/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20070627/c98196d8/attachment-0002.htm>
More information about the JDev
mailing list