Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2017
    Location
    Tokyo, Japan
    Posts
    274
    Plugin Contributions
    0

    Default Recommended charset for DB utf8 or utf8mb4

    Hello all,
    I am doing a clean install of v2.0.0 to test, and notice that the example includes/dist-configure.php has the DB charset set to utf8.
    PHP version is 8.2 and MariaDB version is 10.3.24.

    Is there any guidance on whether utf8 or utf8mb4 is most apprpriate for the DB? I thought that utf8 had certain limitations and therefore utf8mb4 was preferred to handle multibyte characters going forward, but I am not clear on this.

    I'd like to convert my current production 1.5.6c database from utf8 to utf8mb4 using the recommended scripts, before upgrading the production DB to v2.0.0. I expected v2.0.0 to use utf8mb4 as a default, but if utf8 is sufficient then that is no longer necessary.

    Any advice appreciated.
    Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.0.0 with available Japanese language pack and far fewer required plugins.

  2. #2
    Join Date
    Feb 2011
    Location
    Lumberton, TX
    Posts
    557
    Plugin Contributions
    0

    Default Re: Recommended charset for DB utf8 or utf8mb4

    Quote Originally Posted by gernot View Post
    Hello all,
    I am doing a clean install of v2.0.0 to test, and notice that the example includes/dist-configure.php has the DB charset set to utf8.
    PHP version is 8.2 and MariaDB version is 10.3.24.

    Is there any guidance on whether utf8 or utf8mb4 is most apprpriate for the DB? I thought that utf8 had certain limitations and therefore utf8mb4 was preferred to handle multibyte characters going forward, but I am not clear on this.

    I'd like to convert my current production 1.5.6c database from utf8 to utf8mb4 using the recommended scripts, before upgrading the production DB to v2.0.0. I expected v2.0.0 to use utf8mb4 as a default, but if utf8 is sufficient then that is no longer necessary.

    Any advice appreciated.
    I was doing the same thing yesterday and found that utf8mb4 is the recommended in the installation documents. This allows your customers and others to use multibyte characters like emoji's and certain diacritical marks for other languages. At least that is how I understand it.

  3. #3
    Join Date
    Feb 2017
    Location
    Tokyo, Japan
    Posts
    274
    Plugin Contributions
    0

    Default Re: Recommended charset for DB utf8 or utf8mb4

    Thank you! Much appreciated.
    Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.0.0 with available Japanese language pack and far fewer required plugins.

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,746
    Plugin Contributions
    323

    Default Re: Recommended charset for DB utf8 or utf8mb4

    > I was doing the same thing yesterday and found that utf8mb4 is the recommended in the installation documents.

    Correct.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. v151 functions_email.php Charset CHARSET : "iso-8859-1" or UFT-8
    By Peace Freak in forum Upgrading to 1.5.x
    Replies: 2
    Last Post: 12 May 2013, 02:02 AM
  2. v151 Change CHARSET for home page & Localizing v1.5.1 for Vietnamese language
    By truongtamphong in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 6 Dec 2012, 04:32 PM
  3. v150 2007 technique for converting a latin1 table to utf8
    By boxes in forum Upgrading to 1.5.x
    Replies: 1
    Last Post: 23 Jul 2012, 12:06 AM
  4. CHARSET for czech?
    By HSSS in forum General Questions
    Replies: 0
    Last Post: 10 Nov 2011, 10:06 PM
  5. Replies: 5
    Last Post: 1 Sep 2010, 06: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