On 6/27/07, <b class="gmail_sendername">Sergei Golovan</b> <<a href="mailto:sgolovan@nes.ru">sgolovan@nes.ru</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
You're right. And the question is: "How to escape it? Can escaping be<br>done unambiguously?"</blockquote><div><br>Yes, but only if you already know the split.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The problem is that if I get alredy escaped JID<br><a href="http://user\40jabber.org\2fuser@jabber.org/resource">user\40jabber.org\2fuser@jabber.org/resource</a> then I can unescape it<br>and show to a user as <a href="http://user@jabber.org/user@jabber.org/resource">
user@jabber.org/user@jabber.org/resource</a>.<br><br>But what to do if a user enters such a JID into a client entry box and<br>wants to send a message to it?</blockquote><div><br>You have to provider two entry boxes, or require the the user enter a pre-escaped jid, and reject the ambiguous jid.
<br></div><br></div>-- <br>- Norman Rasmussen<br> - Email: <a href="mailto:norman@rasmussen.co.za">norman@rasmussen.co.za</a><br> - Home page: <a href="http://norman.rasmussen.co.za/">http://norman.rasmussen.co.za/</a>