I have already created some fields in a PDF form. Then I create a submit button for submitting those data with html format to an asp. Those data can be successfully retrieved by Request.Form() except Chinese character.
If the data can be successfully retrieved, that will be shown in my asp.
When I submit the field (Name) with Chinese character
Response.write(Request.Form("Name")) 'the value of field in PDF is "測試"
The page show nothing.
If the value of the the field (Name) is not Chinese character
Response.write(Request.Form("Name")) 'the value of Request.Form("Name") is "Mary"
The page shows "Mary"
I have already add the code page and charset in my asp
<%@ LANGUAGE=VBScript CODEPAGE=65001 %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Next, I try to test out if the Chinese character cannot be retrieved or cannot be written.
response.write("中文測試")
"中文測試" can be successfully shown
When I change the code page and charset to 1252 and ANSI
<%@ LANGUAGE=VBScript CODEPAGE=1252 %>
<meta http-equiv="Content-Type" content="text/html; charset=ANSI">
try again
Response.write(Request.Form("Name")) 'the value of field in PDF is "測試"
the result shows ‘ªŽŽ
I think that the problem is fail to retrieve data from PDF submission. How can I successfully get the data with Chinese character? or something I missed out?
The asp file: click to view the image