Here is a string which I'm encoding in JavaScript using encodeURI
Original String - copyright=Copyright © 2003
This is the encoded String - Copyright%20%C2%A9%202003
I'm passing this text with a link like www://abc.com?param=Copyright%20%C2%A9%202003 which in turn opens a javascript popup window.
But when I decode this string in the pop up page, in IE10 it comes like "Copyright © 2003" where as across Chrome & Firefox it shows like "Copyright © 2003".
I understand IE does not display this special character © properly and for that we need to use "©". But somehow I can't send "©" as the parameter as it treats "©" as a new parameter itself as it starts with "&"
Could you please let me know how to properly encode/decode this text correctly across IE using javascript.
encodeURIComponentinstead ofencodeURI, e.g.,&and=are ok in a URI, but will cause problems if you are concatenating a string with them in a component as they may be interpreted as new parameters.encodeURIComponent--that's the reason for it...