Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2011
    Location
    West Yorkshire - England
    Posts
    38
    Plugin Contributions
    1

    Default Character set/database collation/date settings

    Following a recent migration of my test website from 1.39h to 1.5 I am having a few issues with the format of various characters in my site.

    I installed 1.5 from scratch and created a new database.
    I then carefully merged my 1.39h based template with the 1.5 files, checking that the changes I used in 1.39h would not clash with newer 1.5 versions...I used winmerge to manage this.

    Im now finding the following problems with my new 1.5 site.
    1. date of birth is stored as yyyy-mm-dd in the database/displayed as dd/dd/yyyy on the my account store settings.
    2. Pound symbols in my confirmation emails (text version) seem to display the sterling £ symbol incorrectly(appearing as = £xx.xx), despite setting this correctly in my admin/currency and email config settings


    My site http://test.italianhampers.co.uk/ind...e=account_edit

    Im not sure if these things are related. Im using an override file of the english.php to get the date format as I want on the customers date of birth, I followed
    https://www.zen-cart.com/tutorials/i...hp?article=401

    I noticed the collation settings on my database are UTF8_general_ci , does this need to be set in my english.php file too? (instead of 'en_GB.ISO_8859-1' as per the guide above)

    Thanks for any help

    Andy

  2. #2
    Join Date
    Oct 2011
    Location
    West Yorkshire - England
    Posts
    38
    Plugin Contributions
    1

    Default Re: Character set/database collation/date settings

    I might be able to answer my own question here...

    Found courtesy of http://www.picaflor-azul.com/index.p...oducts_id=1090

    CHANGE-136 on new installs, DB_CHARSET now defaults to UTF8, not latin1

    My old 1.39h database backup is set to create tables with
    DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci

    Do I need to alter my english.php file to match the UTF-8 encoding? or do I alter the database collation settings? (or neither!)

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Character set/database collation/date settings

    .

    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.

 

 

Similar Threads

  1. v151 Database Collation - Can they be mixed?
    By Jeff_Mash in forum General Questions
    Replies: 1
    Last Post: 8 Jan 2013, 07:42 PM
  2. Database Collation
    By Ninja Scott in forum Upgrading to 1.5.x
    Replies: 0
    Last Post: 4 Jan 2012, 08:09 PM
  3. 1.5.0RC1 popup says default database character set is Latin1
    By cochlear in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 25 Oct 2011, 04:53 PM
  4. Help on Database Character Set
    By pcontente in forum General Questions
    Replies: 2
    Last Post: 27 Feb 2009, 06:35 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