Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2006
    Posts
    358
    Plugin Contributions
    0

    Default functions_email.php Charset CHARSET : "iso-8859-1" or UFT-8

    I believe that zen-cart is basically using UTF-8. I just came across the:

    includes/functions/functions_email.php

    that has the charset as:

    CHARSET : "iso-8859-1";

    Should it be changed to UTF-8?

    Thanks!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: functions_email.php Charset CHARSET : "iso-8859-1" or UFT-8

    You are misquoting the code.

    The full line is this:
    Code:
          $mail->CharSet =  (defined('CHARSET')) ? CHARSET : "iso-8859-1";
    And, if you read it correctly it uses iso-8859-1 only IF the constant for 'CHARSET' is not defined. And, since any properly installed Zen Cart WILL already have CHARSET defined, that means iso-8859-1 would never be used. That code is only a fallback for VERY RARE situations when CHARSET isn't defined.
    And, if CHARSET is not defined, then there will be numerous far more serious issues.

    So, in summary: ignore it.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Apr 2006
    Posts
    358
    Plugin Contributions
    0

    Default Re: functions_email.php Charset CHARSET : "iso-8859-1" or UFT-8

    Thank you!

 

 

Similar Threads

  1. v154 An unknown response null::text/html; charset=iso-8859-1::
    By bearlymakinit in forum Basic Configuration
    Replies: 7
    Last Post: 28 Aug 2015, 05:33 PM
  2. german language charset in php... editing php files
    By treelight in forum Addon Language Packs
    Replies: 2
    Last Post: 17 Nov 2011, 10:24 PM
  3. Iso-8859-1
    By Soniccc in forum General Questions
    Replies: 2
    Last Post: 28 Jul 2011, 09:34 AM
  4. INSTALL 1.3.9.A isocode utf 8 problem /west Iso 8859-1
    By Joombaya in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 28 Apr 2010, 06:28 PM
  5. Replies: 0
    Last Post: 24 Feb 2010, 05:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR