Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Email from shop scrambles accented characters
Author « Topic »  

jpkuhn
Starting Member

France
38 Posts

Pre-sales questions only
(More Details...)

Posted - 03/26/2021 :  09:31:30  
Hi,

Since I have set "Use PHP Mailer" instead of default PHP mail() because I was losing some emails, the accented characters are not displayed correctly anymore.
I have the line $emailencoding='utf-8'; in includes.php.
But my emails come with
Content-Type: text/html; charset=iso-8859-1
in the header and so they do not interpret the unicode correctly.

Do you know where is this charset instruction in the header inserted?
Is it in the ecommerceteplates code, is it in my PHP hosting server, is it in my gmail account?
Thank you for your help.

JPK

Edited by - jpkuhn on 03/26/2021 09:53:55

Vince
Administrator

42475 Posts

Posted - 03/30/2021 :  14:22:16  
Hi JPK
Do you have the parameter $customheaders anywhere in your includes.php file?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

jpkuhn
Starting Member

France
38 Posts

Pre-sales questions only
(More Details...)

Posted - 03/30/2021 :  23:30:07  
Hi Vince,
Thank you for your reply.
No I don't have this parameter.

Vince
Administrator

42475 Posts

Posted - 03/31/2021 :  03:45:14  
Hi JPK
Is it possible then that you have the charset=iso-8859-1 in the actual email text?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

jpkuhn
Starting Member

France
38 Posts

Pre-sales questions only
(More Details...)

Posted - 03/31/2021 :  06:42:41  
No, I only use the unmodified standard mail messages.

I have noticed this in line 48 of the file class.phpmailer.php:
public $CharSet = 'iso-8859-1';

Is it coming from there?

JPK

Vince
Administrator

42475 Posts

Posted - 04/01/2021 :  02:34:00  
Hi JPK
quote:
I have noticed this in line 48 of the file class.phpmailer.php:
That file hasn't been used by the template for a while as PHP Mailer now uses different filenames, PHPMailer.php - SMTP.php and so on and these new ones are included in the updater. In theory if you remove that file it shouldn't matter.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

jpkuhn
Starting Member

France
38 Posts

Pre-sales questions only
(More Details...)

Posted - 04/01/2021 :  03:12:50  
Actually it does work!
I have replaced iso-8859-1 by utf-8 in line 48 of class.phpmailer.php and the problem is gone.
This means that this file is in use in my setup. Why?

JPK

insight
ECT Moderator

USA
4476 Posts

Posted - 04/01/2021 :  09:19:31  
Presumably, you are using an outdated version of the cart code. In more recent versions it is updated to use PHPMailer version 6.x, instead of version 5.x, and those original files are no longer used.

Peter


Professional ecommerce web hosting services
Shared hosting Windows & Linux | Dedicated servers | Domains | SSL
Ecommerce Templates specialists since 2003
https://servelink.com

jpkuhn
Starting Member

France
38 Posts

Pre-sales questions only
(More Details...)

Posted - 04/01/2021 :  09:53:24  
Isn't the cart code also updated when you install a new release?
I installed phpupdater7.1 not long ago.

JPK

Vince
Administrator

42475 Posts

Posted - 04/01/2021 :  10:11:45  
Hi JPK
I didn't realise you were still on v7.1 but Peter is correct and that version still uses the older PHP Mailer release. They are updated in the latest updater releases.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

jpkuhn
Starting Member

France
38 Posts

Pre-sales questions only
(More Details...)

Posted - 04/02/2021 :  00:53:02  
Thank you for your help.

JPK
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000