Link to home
Start Free TrialLog in
Avatar of perfectshark
perfectshark

asked on

get method with chinese character

Dear ASP experts,

i'm trying to do a dictionary search, I'm using a get variable and retrieving the result with request.querystring, If I pass an english word it works fine, but if I pass a chinese character it returns question mark(?):

Eg 1.
http://www.test.com/testpage.asp?word=tree
the word value is tree

Eg2.
http://www.test.com/testpage.asp?word=l
(I put chinese character "gong1")
the word value is ?

my codepage=65001and Response.CharSet = "utf-8".

Thanks in advance,


<% @ codepage=65001 %>
<%
Response.CharSet = "utf-8"
'testpage.asp
response.expires=-1
getword = request.querystring("word")
response.write getword
 
%>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Dimitris
Dimitris
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial