Results 1 to 9 of 9
  1. #1
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Which UTF-8 version to select when creating MySql?

    Everywhere I read I am supposed to create my database with UTF-8 charset.

    Using phpMyAdmin to create the db I am presented with a bunch of UTF-8 variations to choose from. There is no selection for just UTF-8. Which should I use? I have a USA based shop which should be set up for US English. It's possible we may add some Spanish on our site in the future to accommodate our Hispanic customers (mostly from Mexico.)

    I'm installing Zencart v1.5.4 on a Linux Apache system
    Last edited by ronlee67; 24 Jan 2016 at 03:26 AM.
    www.aspenshopsonline.com - ZenCart 1.3.9h
    www.wilkssupply.com - ZenCart 1.3.9h
    www.un-du.net - ZenCart 1.3.8a

  2. #2
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Re: Which UTF-8 version to select when creating MySql?

    Forgot to mention that I am rebuilding my site by doing a fresh install as the old v1.3.9h has numerous customizations that are no longer needed and some add-ons that will be obsolete. That means I will want to use the old database with the new install. The more I read, the more complicated this project becomes. I checked the current database and it is set up with latin1_general_ci.

    I thought I read somewhere that newer Zencart versions were going to standardize on UTF8 but of course I can't find that information now that it is needed.

    So, I guess my question should be whether to convert latin1_general_ci to some form of UTF8 (utf8_unicode_ci seems to be the most recommended) or stick with latin1_general_ci?

    If Zencart will be standardized to UTF8 going forward then it seems now is the time to convert although it sounds like converting can be a bag of worms.
    www.aspenshopsonline.com - ZenCart 1.3.9h
    www.wilkssupply.com - ZenCart 1.3.9h
    www.un-du.net - ZenCart 1.3.8a

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Which UTF-8 version to select when creating MySql?

    If Zencart will be standardized to UTF8 going forward then it seems now is the time to convert although it sounds like converting can be a bag of worms.
    Not if you choose the tool to convert your database with
    https://www.zen-cart.com/downloads.php?do=file&id=1318
    Zen-Venom Get Bitten

  4. #4
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Which UTF-8 version to select when creating MySql?

    Yes discussion in the forum is that UTF-8 moving forward will be the way to go. At least there are a number of nuances that will exist with which to contend if it isn't converted.

    Good so you've found the upgrade by rebuild instructions then. Template, are either switching templates or converting one to be "mobile" friendly?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Re: Which UTF-8 version to select when creating MySql?

    Thanks Kobra...

    You always provide good guidance.

    Ron
    Quote Originally Posted by kobra View Post
    Not if you choose the tool to convert your database with
    https://www.zen-cart.com/downloads.php?do=file&id=1318
    www.aspenshopsonline.com - ZenCart 1.3.9h
    www.wilkssupply.com - ZenCart 1.3.9h
    www.un-du.net - ZenCart 1.3.8a

  6. #6
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Re: Which UTF-8 version to select when creating MySql?

    The instructions for the conversion tool state "e) Update your Zen Cart configure.php settings to use 'utf8' for DB_CHARSET and english.php to set CHARSET to 'utf-8"

    I just completed running the convert_db2utf8.php tool. I am going to be upgrading v1.3.9h Zencart to 1.5.4. Neither configure.php file in my 1.3.9h files has an entry for DB_CHARSET. Should I add a new line like this to each configure.php file before upgrading? It seems logical but just want to pass this by the experts before taking a chance of scrambling things up.

    Code:
    define ('DB_CHARSET'), 'utf8');
    also in /[admin]/languages/english.php change this line to (utf-8, not utf8):
    Code:
    define)'CHARSET', 'utf-8');
    Quote Originally Posted by kobra View Post
    Not if you choose the tool to convert your database with
    https://www.zen-cart.com/downloads.php?do=file&id=1318
    Last edited by ronlee67; 24 Jan 2016 at 11:26 PM.
    www.aspenshopsonline.com - ZenCart 1.3.9h
    www.wilkssupply.com - ZenCart 1.3.9h
    www.un-du.net - ZenCart 1.3.8a

  7. #7
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Which UTF-8 version to select when creating MySql?

    You can use the dist-configure.php files from your 1.5.4 file set and compare/update your configure.php files

  8. #8
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Which UTF-8 version to select when creating MySql?

    Also, yes the format of "utf-8" in the language file is correct... Unfortunately different "applications" have adopted the language set differently taking an already potentially confusing aspect even more so...

    If you follow the process of: http://www.zen-cart.com/entry.php?3-...d-of-upgrading

    Then the configure.php files will be auto-created saving yourself a lot of time from potentially making an error in any one of the many entries... Unless of course you have completely inaccurate information to start. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #9
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,494
    Plugin Contributions
    88

    Default Re: Which UTF-8 version to select when creating MySql?

    Quote Originally Posted by Design75 View Post
    You can use the dist-configure.php files from your 1.5.4 file set and compare/update your configure.php files
    What @Design75 says will work, but you can also use the "Upgrade Configuration Files" button from the zc_install upgrade processing to automatically "fix" those files.

 

 

Similar Threads

  1. Select which attribute display on product info page
    By solo_400 in forum General Questions
    Replies: 3
    Last Post: 4 May 2015, 04:03 PM
  2. Which version of MySQL? 4.1 or 5.0?
    By chicagonature in forum Installing on a Windows Server
    Replies: 0
    Last Post: 20 Jun 2007, 09:41 PM
  3. Which webhost and PHP/MySQL version best for Zen Cart?
    By dinosoup in forum General Questions
    Replies: 1
    Last Post: 15 May 2007, 04:50 AM
  4. Advice please! Which MySql and Which PHP
    By Daves Teddy in forum Installing on a Linux/Unix Server
    Replies: 13
    Last Post: 6 Nov 2006, 04:57 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