Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Chinese characters in a form

Status
Not open for further replies.

BuzzerTom

Technical User
Aug 20, 2003
35
BE
Hi all,

I have a website in chinese with several forms in it.

Some forms work correctly. It are the forms that are working with the GET method and the form items are collected with the request statement.

But the problem starts with the forms that allow the user to send text and upload a picture. I use as a form method post in this case and I collect the form items with the dundas component. Example statement:

txtTitle = objUpload.Form("txtTitle")

In this case the chinese characters that are posted are changed into all sort of different western characters. Can this be avoided ?

Many thanks for any answer...
Tom
 
For the moment I copy/paste them from a chinese Word document. And for now that works fine in the standard forms without any upload. But it doesn't work in the forms that uses dundas upload component.
 
Am unfamiliar with the problem you are having, but if it is happening only with forms that use the Dundas Upload component, then it would lead to the thought that the problem lies within the upload component itself. In which case, I would be tempted to go back to Dundas and question them as to what is happening and how best to resolve it.

If you receive resolution, would be interested in hearing about it...

------------------------------------------------------------------------------------------------------------------------
If you don't have a sense of humor, you probably don't have any sense at all.
- Anonymous
 
Hi all,

Just to let you know that I found the solution. Maybe anyone else will need it in the future. The error wasn't due to the get or post or the dundas component. The chinese characters are only passed correctly to the processing page if the header of the form page has the following line in it:

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

In this case every chinese character is converted and passed trough correctly.

Many thanks for all the help tough.
Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top