Can't post Chinese characters to my search form

I'm having a bit of trouble posting chinese characters to a search form. It works great on localhost but not on my website.

The search input is this: 假发

The resulting url on localhost: http://search.taobao.com/search?commend=all&isnew=2&q=%BC%D9%B7%A2&source=search1

The resulting url on the website: StackOverflow actually encode's it,the encode result is different though, thing is that on the website instead of q=%BC%D9%B7%A2 I get q=假发 in the url itself. http://search.taobao.com/search?commend=all&isnew=2&q=%E5%81%87%E5%8F%91&source=search1

You can see that it actually inserts the chinese characters into the query. I have no idea why this works differently on lcoahost and on a live site. The character encoding is:


But I tried UTF-8 as well, no changes.

here's the html of my form. The search query goes to the second input box. THe first one's for transaltion, which works fine. Not sure what's the deal and whether I have to encode the characters or not and why does it work on localhost??? Thanks in advance!

 

5
задан Makoto 20 May 2012 в 20:48
поделиться