View Full Version : Encoding colon?

22 Nov 2011, 8:47 AM
How can we encode colon in extjs?
I tried this

html: '<iframe style="overflow:auto;width:75%;height:80%;" frameborder="0" src="http://www.abc.com/wiki/xyz%3Atest"> </iframe>' (http://www.jarviwiki.fi/wiki/Keskustelu%3Dgege&quot;></iframe>'),

It doesn't work however if I try another other character than colon it works. Can anyone suggest how to resolve this?

22 Nov 2011, 9:57 AM
You can use the javascript search for the colon and replace it.

22 Nov 2011, 11:16 AM
@new2extjs --

%3a is the proper encoded value for your colon. But, if abc.com is backed by an IIS server you'll likely see a 'bad request' response from them.

Turns out the colon was an attack vector (all the way through to the NTFS) years ago, so it's actually not supported by $MS much these days.

24 Nov 2011, 6:46 AM
Thanks a lot for the reply.
But I am using Apache server. How should I deal in that case?