Hmm, I am seeing something different than you Mohamed. I've opened up Firebug's javascript console in Firefox and entered the command: > window.location='xmpp:[email protected]?message;body=SR 12345';
I opened up Pidgin's debug log and saw the following: (18:07:43) winpidgin: Got protocol handler request: xmpp:[email protected]?message;body=SR%2012345 (18:07:43) util: Processing message ' [email protected]?message;body=SR%2012345' for protocol 'xmpp' using delimiter ';'. What I saw in my conversation window was exactly: SR%2012345 In the documentation on http://xmpp.org/extensions/xep-0147.html#actions-message, it seems to say that the %20 should be translated to a space, but that is not what I am seeing. Using latest version of pidgin on Windows with the following protocol handler: "C:\Program Files (x86)\Pidgin\pidgin.exe" --protocolhandler=%1 Running the following command: C:\Program Files (x86)\Pidgin>pidgin --protocolhandler= xmpp:[email protected]?message;body=SR%2012345 Results in the same behavior. However, running: C:\Program Files (x86)\Pidgin>pidgin --protocolhandler= xmpp:[email protected]?message;body=SR 12345 Results in the behavior Mohamed Hamed is reporting. This seems to be due to the fact that Windows has no proper way of escaping spaces in a parameter. So 12345 is passed as %2 which is ignored by Pidgin. Even trying ^ and \ had no results in escaping the space character. Although, I think the real problem here is that Pidgin does not seem to be decoding the body parameter as expected. At least not for me. Anyone else getting different results? -- Steven Gauna window.location='xmpp:[email protected]?message;body=SR 12345'; On Thu, Aug 30, 2012 at 12:34 AM, Mohamed Hamed <[email protected]>wrote: > I'm sorry, > I already encoded the space with %20 and still has the problem > > javascript:(function(){window.location=' > xmpp:[email protected]?message;body=SR%2012345';;})();; > > Regards > > Mohamed Sayed | Principal Analyst > Phone: +202 3535 0342 | Fax: +202 3535 0342 | Mobile: +2010 7215722 > Oracle Global Customer Support | Fusion Applications | Application > Technology - AppsDev > > ORACLE Egypt | KM 28 Cairo-Alex. Desert Road | Oracle building | Smart > Village | 12577 Giza > > Oracle is committed to developing practices and products that help protect > the environment > > > > -----Original Message----- > From: Dave Warren [mailto:[email protected]] > Sent: Thursday, August 30, 2012 2:25 AM > To: [email protected] > Subject: Re: URI protocol for invoking pidgin > > On 8/29/2012 3:32 PM, Mohamed Hamed wrote: > > Thank you Daniel for the quick response. > > It is working fine now after adding the message command. > > > > However I had another problem. If the body has a space, nothing come > after the space. > > For ex: > > I created a bookmark as the following : > > > > javascript:(function(){window.location=' > xmpp:[email protected]?message;body=SR 12345';;})();; > > > > This successfully open the chat window for user.name with a body as > "SR" and any text after the space is ignored. > > > > Since we're talking URIs, shouldn't a space be encoded as %20 or similar? > > -- > Dave Warren > http://www.hireahit.com/ > http://ca.linkedin.com/in/davejwarren > > _______________________________________________ > [email protected] mailing list > Want to unsubscribe? Use this link: > http://pidgin.im/cgi-bin/mailman/listinfo/support > > _______________________________________________ > [email protected] mailing list > Want to unsubscribe? Use this link: > http://pidgin.im/cgi-bin/mailman/listinfo/support >
_______________________________________________ [email protected] mailing list Want to unsubscribe? Use this link: http://pidgin.im/cgi-bin/mailman/listinfo/support
