We have a form which sends the data to a third party handler and it works fine, however the third party handler can accept the data (Chinese Characters) only in GB2312 coding instead of UTF-8...
Is there any way to tell the form to collect the data and than send the data in GB2312 instead of UTF-8 ???
Thanks for any ideas....
Heiko
Hi iaweb2,
I'm groping in the dark but the cURL plugin (or the underlying PHP cURL code) might well allow you to set the charset like this.
Bob
Dear Bob:
Thanks for "groping in the dark", now all I need to know how to use the curl ....
I looked at the plug-in and could not find a way to put any code settings there... On the other hand the sending of the information to the third party application works fine with the set-up we have right now, except for the encoding of the actual fields... so there should be no reason to use the curl to send to another url??
Thanks
Heiko
Hi Heiko,
A quick Google suggests that you could try adding accept-charset="iso-8859-1,UTF-8" to the Form Tag Attributes box (with the appropriate charset codes of course).
Bob
Dear Bob:
Thank you very much for that, I tried this out, however somehow does not work, as the form itself is still loaded in UTF-8, that means any and all Chinese characters a visitor will enter will be sent as UTF characters, even if we say accept the GB code as well....
I think this one is really tricky ...
Thanks,
Heiko
Hi Heiko,
Then maybe it's a question of setting the charset for the whole page. I think you can add something to the header tags to do that?? Way outside my area of knowledge :-(
Bob
Hey Bob:
That seems to be the prevailling problem... if I set the whole page to GB2312 than the rest of the whole site does not work anymore, as everything else is in UTF-8, plus the database is in UTF-8 etc...
Maybe I will have to use a complete outside Form and add it via Iframe or something .... however would hate to do this ...
Thanks for the help,
Anybody who has any other odeas is welcome to chime in... 😶
Hi Heiko,
You could check the 'Form in a smoothbox' thread and show the form without the template.
Bob