PDA

View Full Version : Unable to decode special character using urlDecode



harishns
13 Apr 2009, 12:54 AM
Hi,
I am facing a problem with Ext.urlDecode function, it is throwing error "uri to be decoded is not a valid encoding" if I pass the special characters('™®©'),
any idea on this

Thanks in advance
Harish

fay
14 Apr 2009, 9:46 AM
From the documentation (http://extjs.com/deploy/dev/docs/?class=Ext):


urlDecode( String string, [Boolean overwrite] ) : Object

Takes an encoded URL and and converts it to an object.

Passing a string to this function containing your characters (™®©) is considered invalid. Your characters are not encoded URL characters - which would be "%E2%84%A2%C2%AE%C2%A9"

I imagine that you are thinking of the urlEncode() function.