RE: [PHP] Japanese entry into MySQL and into emails
| From: | Dave G | Date: | Mon, 03 Nov 2003 13:55:20 +0000 |
| Subject: | RE: [PHP] Japanese entry into MySQL and into emails | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-168384@lists.php.net to get a copy of this message | ||
The issue of entering Japanese into email from a PHP script has
been resolved. A key point was that when creating a header for an email,
not only should \r\n be used to separate lines, but immediately
preceding \r\n should be a space.
The end result was to create a variable that goes into the final
space in the mail() command where one puts additional headers which
looks like this:
$headers = $fromaddress . " \r\nContent-Type: text/plain;
charset=iso-2022-jp";
Thanks Marek, Eugene, and Edwin for their advice on this matter,
and of storing kanji in a MySQL database.
--
Cheers!
Dave G
ml@autotelic.com