javascript - Cross browser url parameter with utf8 possible? -


1.may know modern browsers support user address parameter http://abc.com?something=utf8chactershere ?

2.which browser not support it?
3. can javascript parse parameter on browser?

example : http://abc.com?something=环保部&something2=环保部

you should percent-escape utf-8 representation of characters:

http://abc.com/?something=环保部&something2=环保部 

becomes

http://abc.com/?something=%e7%8e%af%e4%bf%9d%e9%83%a8&something2=%e7%8e%af%e4%bf%9d%e9%83%a8 

any modern browser display second first in url bar.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -