Language Encoding issue in Newsletter Plugin

n3438

New Member
YetiShare User
Jan 11, 2014
12
0
0
Hello,

I just installed the Newsletter Plugin v3.4 but when I sent a news letter, the message arrived in an unreadable text for the Arabic Language, while the English text works fine.

I have attached a screenshot to show the issue.

Please help solve this issue,

Thanks in advance,
 

Attachments

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Hi,

Does the email content get stored ok in the database? Have a look in the plugin_newsletter table at the html_content column.

Also if viewing it within the admin area causes any character issues?

I'm trying to see whether it's just the email sending part or if anything before is affecting it.

Thanks,
Adam.
 

n3438

New Member
YetiShare User
Jan 11, 2014
12
0
0
Hi adam,

I looked in the plugin_newsletter table at the html_content column and the email content get stored ok, I can read the text in Arabic.
ALso when viewing it within the admin area there is NO any character issues and I can read the text in Arabic.

Thanks for your help adam and waiting for a solution to this issue.
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Assuming you're using smtp for email sending, in includes/email_class/class.phpmailer.php find:

Code:
public $CharSet           = 'iso-8859-1';
change to this:

Code:
public $CharSet           = 'UTF-8';
If you're not using smtp via the script, let me know.
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Can you set it with smtp. You'll probably get a lot more of your emails through aswell. :)
 

n3438

New Member
YetiShare User
Jan 11, 2014
12
0
0
Hi adam,

it worked fine with smtp and I think I will keep using smtp

Thanks adam