On 6/27/07, Sergei Golovan <[EMAIL PROTECTED]> 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
[EMAIL PROTECTED]/resource then I can unescape it and show to a user as [EMAIL PROTECTED]/[EMAIL PROTECTED]/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: [EMAIL PROTECTED] - Home page: http://norman.rasmussen.co.za/
