php-i18n Digest 23 Nov 2003 14:14:31 -0000 Issue 204

Topics (messages 634 through 635):

Re: Japanese katakana "SO" in SJIS gives problems.
        634 by: David Emery

Re: mail failure
        635 by: David Kendal

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
2003年11月19日(水)の19時27分に 
Jean-Christian IMbeault 曰く:
> I'm having trouble with POST form data being passed to me in Japanese.
> The incoming data is in SJIS and if someone enters the japanese katakana
> "SO" it somehow ends up being turned up in to "SO\".
> 
> Here is an example:
> 
> User enters "ソ"
> 
> PHP says the POST values is:
> 
> POST['name'] = [EMAIL PROTECTED](B
> 
> Where did that last character come from? This is a big problem for me if
>  people enter words in katakana containing the character "SO". For
> example "software" gets an extra backslash inserted after the so ...
> 
> Does anyone have a safe solution to this problem?

There are other characters in SJIS that cause similar problems too.
Setting EUC as the internal encoding should fix it. 

> 
> Thanks,
> 
> Jean-Christian Imbeault
-- 
-dave

--- End Message ---
--- Begin Message ---
Which version of PHP are you using? In PHP4, you sometimes need to put the
Sender and From etc. in Variables.

Hope this Helps,

David
"Michal Rus" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi,

I've a problem with getting right reply from my php script through
mail() function to my email account. The problem is with charset not
parsed by an email client :

$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-2\r\n";

I send these headers but the charset doesn't work..

Can you help ?


Thanks

ybz

--- End Message ---

Reply via email to