If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Customization from the Admin / Î Ş Ţ Ă Â Characters in e-mail Order Confirmation Problem

Î Ş Ţ Ă Â Characters in e-mail Order Confirmation Problem

Started by adrian_cioc_rlan on 10 Dec 2018, 12:25 PM · Views: 5,333

Results 1 to 13 of 13
10 Dec 2018, 12:25 PM
#1
adrian_cioc_rlan avatar

adrian_cioc_rlan

New Zenner

Join Date:
May 2016
Location:
Bucharest
Posts:
48
Plugin Contributions:
0

Post #1 by adrian_cioc_rlan

Attachment 18167

Hello, we have a problem for the e mail order confirmation, create accoung, contact form with the displaying of order confirmation names and address in the Romanian language. Can someone help?

...this is a photo showing the example as i tried to to paste the example, but the text is displaying correctly on the post...

10 Dec 2018, 2:32 PM
#2
adrian_cioc_rlan avatar

adrian_cioc_rlan

New Zenner

Join Date:
May 2016
Location:
Bucharest
Posts:
48
Plugin Contributions:
0

Post #2 by adrian_cioc_rlan

Attachment 18168

Just wanted to add a print screen showing that the characters are showing OK in the orders section of the Admin side. The problem only appears at e-mail level... tried to switch Use MIME HTML When Sending Emails to "true" but it didn't solve it.

10x again

10 Dec 2018, 3:51 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #3 by lat9

Adrian, are you having the issue with TEXT or HTML emails ... or both?

10 Dec 2018, 4:57 PM
#4
adrian_cioc_rlan avatar

adrian_cioc_rlan

New Zenner

Join Date:
May 2016
Location:
Bucharest
Posts:
48
Plugin Contributions:
0

Post #4 by adrian_cioc_rlan

lat9:

Adrian, are you having the issue with TEXT or HTML emails ... or both?

I guess in both cases, because I tried to enable HTML sending format from <<Use MIME HTML When Sending Emails to "true">> but turning this from false to true didn't solve the character problem.

Maybe there is another way to turn on sending HTML e-mails by default, is it? Or maybe some other thing is causing the problem ...:blush:

10 Dec 2018, 6:03 PM
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #5 by lat9

Are you really still using Zen Cart 1.5.1 (given that 1.5.6 was just released)?

What is the **CHARSET **definition for your various language definitions, e.g. /includes/languages/{YOUR_TEMPLATE/}english.php?

12 Dec 2018, 9:51 AM
#6
adrian_cioc_rlan avatar

adrian_cioc_rlan

New Zenner

Join Date:
May 2016
Location:
Bucharest
Posts:
48
Plugin Contributions:
0

Post #6 by adrian_cioc_rlan

lat9:

Are you really still using Zen Cart 1.5.1 (given that 1.5.6 was just released)?

What is the **CHARSET **definition for your various language definitions, e.g. /includes/languages/{YOUR_TEMPLATE/}english.php?

// charset for web pages and emails
define('CHARSET', 'iso-8859-1', 'UTF-8');

Still Using 1.5.1 unfortunately because no new RO language pack is available for the new versions. We intend to update, but the site is live and it's a bit difficult at the moment. :(

12 Dec 2018, 12:46 PM
#7
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #7 by lat9

Adrian Ciocîrlan:

// charset for web pages and emails
define('CHARSET', 'iso-8859-1', 'UTF-8');

Still Using 1.5.1 unfortunately because no new RO language pack is available for the new versions. We intend to update, but the site is live and it's a bit difficult at the moment. :(
Adrian, what happens if you change that definition to:

// charset for web pages and emails
  define('CHARSET', 'utf-8');
12 Dec 2018, 2:47 PM
#8
adrian_cioc_rlan avatar

adrian_cioc_rlan

New Zenner

Join Date:
May 2016
Location:
Bucharest
Posts:
48
Plugin Contributions:
0

Post #8 by adrian_cioc_rlan

lat9:

Adrian, what happens if you change that definition to:

// charset for web pages and emails
define('CHARSET', 'utf-8');


Do I need to also change Use MIME HTML When Sending Emails from false to true or just the charset line?
12 Dec 2018, 3:50 PM
#9
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #9 by lat9

I believe that just the CHARSET change should be required.

14 Dec 2018, 10:32 AM
#10
adrian_cioc_rlan avatar

adrian_cioc_rlan

New Zenner

Join Date:
May 2016
Location:
Bucharest
Posts:
48
Plugin Contributions:
0

Post #10 by adrian_cioc_rlan

lat9:

I believe that just the CHARSET change should be required.

Thanks so much, lat9, this did the trick, been searching for the solution for a very long time :)!

14 Dec 2018, 12:26 PM
#11
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #11 by lat9

You're welcome, Adrian. Just make sure that your database character-set (the DB_CHARSET setting in the storefront /includes/configure.php and the admin's /admin/includes/configure.php) also identify 'UTF-8' ... noting the capitalization difference ... and that your database tables' collation all show some form of utf8_ as well.

17 Dec 2018, 10:44 AM
#12
adrian_cioc_rlan avatar

adrian_cioc_rlan

New Zenner

Join Date:
May 2016
Location:
Bucharest
Posts:
48
Plugin Contributions:
0

Post #12 by adrian_cioc_rlan

lat9:

You're welcome, Adrian. Just make sure that your database character-set (the DB_CHARSET setting in the storefront /includes/configure.php and the admin's /admin/includes/configure.php) also identify 'UTF-8' ... noting the capitalization difference ... and that your database tables' collation all show some form of utf8_ as well.

the DB_CHARSET looks the same in both files that you mentioned, but i'm not sure what you meant by: "noting the capitalization difference", the line "utf-8" is lowercase" as:

/includes/configure.php:
define('DB_CHARSET', 'utf8');

/admin/includes/configure.php
define('DB_CHARSET', 'utf8');

as for the database tables, i don't know where exactly to check to see how it looks like, can you tell me?

Thank you!

17 Dec 2018, 12:20 PM
#13
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #13 by lat9

Adrian, the code you posted for your configure.php files look correct for identifying that your database is using a form of utf8_* "collation".

You can check your database's various tables using your web-host's phpMyAdmin, clicking on the database name to view all tables within that database. You'll see a column named ***Collation **where all entries should be some form of utf8_, e.g. utf8_general_ci.

If any of the column-entries are a latin1-variant, e.g. latin1_swedish_ci, you'll need to download, install and run Convert db2utf8 to correct the issue.