Language coding?

NateMail, ProcessForm, JavaScript Form Validator, Form Security, etc.

Language coding?

Postby PatrickB » 09/18/2008 @ 15:21

Hi there - got NateMail up and running in a jiffy and am well pleased with it!
I am using it in a German environment and it seems not to be able to deal with special characters such as ß ü ä ö etc. It writes Straße as StraÃYe.... Is there a simple solution for this?
Many thanks
P
PatrickB
 
Posts: 2
Joined: 09/18/2008 @ 15:16

Re: Language coding?

Postby Nate Baldwin » 09/19/2008 @ 09:14

Is the problem in the email message, or the confirmation page? I'm guessing the email message, in which case you might try using a different encoding for the outgoing email. In recent versions of NateMail.php, this code should be around line 601:

Code: Select all
$headers = "MIME-Version: 1.0$le";
$headers .= "Content-Type: text/plain; charset=\"iso-8859-1\"$le";
$headers .= "Content-Transfer-Encoding: 7bit";


It might like utf-8 encoding better, so try changing those lines to:

Code: Select all
$headers = "MIME-Version: 1.0$le";
$headers .= "Content-Type: text/plain; charset=\"utf-8\"$le";
$headers .= "Content-Transfer-Encoding: 8bit";


...to use the utf-8 character set and 8 bit encoding. Any luck after that?
Nate Baldwin
Site Admin
 
Posts: 3724
Joined: 04/25/2003 @ 19:05

Re: Language coding?

Postby PatrickB » 09/21/2008 @ 05:09

Yes, the problem was in the email message and your solution was what I figured, but didn't know where to find or implement it!
Many thanks for your prompt solution!
Patrick
PatrickB
 
Posts: 2
Joined: 09/18/2008 @ 15:16

Re: Language coding?

Postby kustat » 05/21/2009 @ 06:39

Hi Nate,

Firstly, thanks a lot for the script. It works perfectly!

But I seem to have the same problem as Patrick. My contact form should include text in Russian, but I get just symbols. I tried the solution you offered to Patrick. But it still does not work. Do you have any other solution?

Thanks a lot
Tanja
kustat
 
Posts: 1
Joined: 05/21/2009 @ 06:14


Return to Form Processing (NateMail, ProcessForm)



Who is online

Users browsing this forum: Exabot [Bot] and 1 guest

cron