Noam Smadja
Noam Smadja

Reputation: 1035

strange Encoding issue

i have a contact form sending itself to me by email using ASP classic, CDO.message.

thing is, that it has hebrew characters and i encoded it UTF-8. but when sending to my email i get ??????? instead of hebrew.

i copied the exact files handeling this form to another FTP i have, and BOOM! it works fine..

what is the cause?

Upvotes: 0

Views: 430

Answers (3)

Fortuatis
Fortuatis

Reputation: 16

Not sure if this applies, but are you sure both servers have the Hebrew character sets installed properly?

Had a similar issue once with Chinese simplified getting garbled on one server and working on the other. Re-installing Asian language pack fixed the problem. Not sure if you need a language pack for Hebrew, but might be worth checking.

Upvotes: 0

Cirieno
Cirieno

Reputation: 478

Make sure that you've saved your ASP pages as UTF8 format -- it's not always enough to just have HTML and server-side ASP pointers to UTF8.

If you're working on Windows then most Windows apps seem to save in either your current locale or in Windows-1252 (ANSI) by default and not UTF8.

Try opening your files in Notepad and when you go to "Save As..." change the encoding from ANSI to UTF8 and upload again. Ignore the 3 odd metacharacters you might see at the beginning of the file (if you do), this is the Unicode BOM.

However, it's worth including every pointer you can to your page being UTF-8 ie HTML metatags, ASP locale settings, FORM tags can have an encoding specified, and if you're absolutely sure your page is XHTML compliant then an XML header.

Upvotes: 1

Michael Borgwardt
Michael Borgwardt

Reputation: 346300

Is it possible that the FTP client was running in ASCII mode and thus messing up non-ASCII characters?

Upvotes: 1

Related Questions