Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Redhat Enterprise and PHPs MBSTRING



David E wrote:

>From: Robert Fisher <robert@example.com>
>Subject: Re: [tlug] Redhat Enterprise and PHPs MBSTRING
>Date: Thu, 31 Mar 2005 16:00:26 +0900
>
>  
>
>>David E wrote:
>>
>>    
>>
>>>From: Robert Fisher <robert@example.com>
>>>
>>>      
>>>
>>>>I am installing a system and for some reason we are having a problem 
>>>>with encoding of japanese text to be sent out in emails.  The emails 
>>>>either come in "mojibake" or cutoff.  
>>>>
>>>>        
>>>>
>>>Have you checked the mb-related settings in the two php.ini files, and/or
>>>compared the output of phpinfo() on the 2 systems?
>>>
>>>      
>>>
>>Thanks for your response, yeah was the very first thing we did.  
>>
>>Would the Locale of the server have any effect?  on both servers the 
>>locale is english utf8.
>>    
>>
>
>I'd still be inclined to look for some difference between the two
>systems in one of: the php code, php installation settings, php.ini settings.
>
>As in Alessandro's example, is mb_language set to "ja" in both? Are
>both using mb_send_mail rather than send_mail? That sort of thing. 
>
>I doubt that the locale setting matters (esp. since it's the same on
>both systems)
>
>-dave
>
>
>  
>
As for the PHP, it has been compiled the same on numerous servers 
exactly the same way using the same versions.  With PHP, in the compile 
stage, we used --enable-mbstring=all and --enable-mbstr-enc-trans (even 
though it is truncated in the version we use).  the mbstring sections in 
the php.ini file are exactly the same.  Are there any requirements for 
mbstring?  libraries or the such?  They might be slightly different 
since I didn't install any system level libraries other than those 
included on the OS CD.

mb_language is set to "ja" on both servers. and both servers are using 
mb_send_mail.

I am actually trying to figure out why it is so different between the 
two servers.  We did however come up with a solution.  On the red hat 9 
server, we converted the body of the email to ISO-2022-JP  and the 
subject line was in EUC format before passing it through mb_send_mail.  
On the enterprise server, the solutions was to send the subject and body 
into mb_send_mail as EUC formatted.  I understand that mb_send_mail will 
convert the text to ISO-2022-JP format. 

Thanks for any hints, advice, solutions, etc. in advance

Regards,
Robert Fisher



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links