Regis 2008-09-02 08:30
I'm using quickCart V3.x and SendOrderToClient v0.6 The problem is, that when e-mail with order comes to the customer , special lithuanian characters (encoding UTF-8) replaces with non usabel characters. Original text: Mechaninės žerglės ,,Codimex" 60cm. Text from e-mail: Mechanin??s zergl??s ,,Codimex" 60cm How to solve this problem? May be "mb_encode_mimeheader" can help ?
» Quick.Cart v3.x Regis Regis 2008-09-02 08:36
I mean in e-mail letters čėšž and other are not shown correctly.
Regis 2008-09-03 11:58
Regis - then try this one. Edit core/common.php and find function sendEmail() and find this:
$sMailContent = change2Latin ( $sMailContent );
and change to this
$sMailContent = $sMailContent ;
Maybe it will helps. If not then add this variable to for example mb_encode_mimeheader
Regis 2008-09-05 10:13
Thanx for help. Now it works perfectly on gmail : http://www.miskui.lt/gmail.jpg On MS Outlook it also works after switching encoding to UTF-8 in View menu : http://www.miskui.lt/outlook.jpg But it stil not works on web mail clients (such as SquirrelMail): http://www.miskui.lt/webmail.jpg Could You be so kind to write me an example, how to use mb_encode_mimeheader variable in quick.cart internal code ?
2008-09-05 13:45
Regis - problem is that i dont know well this function and i cant help you in this case.
Regis 2008-09-08 10:10
The manual of this function is here: http://lt2.php.net/mb_encode_mimeheader The string type is: string mb_encode_mimeheader ( string $str [, string $charset [, string $transfer_encoding [, string $linefeed [, int $indent ]]]] ) I just don't know witch arguments I should use from the core of the QuickCart source...
2008-09-08 14:54
Regis - then change to: $sMailContent = mb_encode_mimeheader( $sMailContent, 'UTF-8' );
Regis 2008-09-10 11:10
After changing code to if( !empty( $sTopic ) && !empty( $sMailContent ) && checkEmail( $sSender ) === true ){ $sMailContent = mb_encode_mimeheader( $sMailContent, 'UTF-8' ); $sTopic = $sTopic ; Now e-mail content looks like: http://www.miskui.lt/after.jpg
Regis 2008-09-10 20:03
Regis - then mb_encode_mimeheader is not good. Maybe change this:
if( @ mail ( $sTargetEmail , $sTopic , $sMailContent , 'From: ' . $sSender ) ){
to
if( @ mail ( $sTargetEmail , $sTopic , $sMailContent , 'From: ' . $sSender . "\r\nContent-type: text/plain; charset=utf-8\r\n" ) ){
Regis 2008-09-11 10:08
Now it works perfectly! http://www.miskui.lt/invoice.jpg Thank You very much! :) If You will come to Vilnius - just drop me an e-mail few days before Your trip. (regimantas(at)gmail.com) Beer for You is from me ;) Brg.
Candy 2008-10-13 14:10
I can´t get Swedish letters ÅÄÖ or åäö. Is there anone who have a solution? Hope I can get help.
JJ