Results 1 to 7 of 7

Hybrid View

  1. #1

    Default Re: UTF8 some Japanese char are question marks ??

    I have to say, I am surprised that I needed to add a separate file with one short line of code to get UTF8 to show correctly on all pages of the zencart platform. It's a pretty international platform and I don't understand why this can't be automatically included???

    For anyone else who stumbles here looking for a solution, I followed a solution I found somewhere else and it worked.

    Create a new .php file name it anything(?), I named mine "my_db_charset.php". Include in the file, one line of code <?php define('DB_CHARSET', 'utf8'); save and upload to your extra-configures directory in both includes and admin/includes.

    I required utf8, but I would assume that you could use any charset that you need zencart to conform to and would just replace the utf8 in the line of code with yours.
    You can't wait for inspiration. You have to go after it with a club.
    "Jack London"

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: UTF8 some Japanese char are question marks ??

    Quote Originally Posted by studiotucker View Post
    I have to say, I am surprised that I needed to add a separate file with one short line of code to get UTF8 to show correctly on all pages of the zencart platform. It's a pretty international platform and I don't understand why this can't be automatically included???
    It IS automatically included. For new installations, not for upgrades.

    When you do a new install of Zen Cart v1.5.0 or newer, the configure.php file will already contain a define for DB_CHARSET.
    If your upgrade involved doing a new install of Zen Cart, then you would also have had that automatically. But, since you chose a different approach for upgrading, you've had to apply your own bandage to get to the same end result.
    .

    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

    Default Re: UTF8 some Japanese char are question marks ??

    Thanks Doc.
    You can't wait for inspiration. You have to go after it with a club.
    "Jack London"

 

 

Similar Threads

  1. Replies: 4
    Last Post: 2 Dec 2013, 07:43 PM
  2. Japanese Char not displaying properly on part of the webpages
    By gamenano in forum General Questions
    Replies: 2
    Last Post: 5 Nov 2012, 01:56 AM
  3. Greek characters showing as char$ codes at some places only
    By andreasy in forum General Questions
    Replies: 19
    Last Post: 15 Dec 2010, 12:23 AM
  4. some char in product desc is truncating
    By svakanda in forum General Questions
    Replies: 1
    Last Post: 16 Jun 2009, 11:37 PM
  5. Japanese text outputs Question Marks
    By beerlabelbuilder in forum Addon Language Packs
    Replies: 9
    Last Post: 1 Mar 2009, 12:33 AM

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