Page 1 of 2 12 LastLast
Results 1 to 10 of 145

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Posts
    182
    Plugin Contributions
    0

    Default UTF-8 Zen-Cart Tutorial for v1.3.x

    I posted a tutorial as to how to transition zen-cart over to UTF-8 encoding also having the database encoded in UTF-8 too. This was made for carts using Japanese, but it could be used for many other languages.

    Here is the link
    UTF-8 Zen-Cart

    I hope people find this helpful.

    Regards,

    CKD

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: UTF-8 Zen-Cart Tutorial

    Excellent tutorial.. thanks for taking time
    to create and share

  3. #3
    Join Date
    Apr 2007
    Posts
    182
    Plugin Contributions
    0

    Default Re: UTF-8 Zen-Cart Tutorial

    Its always good to give back. I wish, I had more to give.

  4. #4
    Join Date
    Dec 2004
    Location
    The Internet
    Posts
    81
    Plugin Contributions
    0

    Default Re: UTF-8 Zen-Cart Tutorial

    Thanks for the tip. It would be something great to have as a standard feature in a next version of Zencart.

  5. #5
    Join Date
    Apr 2007
    Posts
    182
    Plugin Contributions
    0

    Default Re: UTF-8 Zen-Cart Tutorial

    I wish it was UTF-8 from the get go too, but I understand that when they started zen-cart, UTF-8 wasnt really a good option then. So to change everyone over, would be a huge pain I am sure. I would like to make a way to take an existing cart and change it over to UTF-8, database and all.

    Maybe when I get more time, I will look into that.

  6. #6

    Default Re: UTF-8 Zen-Cart Tutorial

    if i already installed my zen cart, would i need to re-install after i finished everything in the tutorial

  7. #7
    Join Date
    Oct 2008
    Posts
    1
    Plugin Contributions
    0

    Default Re: UTF-8 Zen-Cart Tutorial

    Hi, I have a problem with the search in my zen-car when I use UTF-8 encoding
    My database is in collation utf8, charset in bulgarian.php and in english.php is utf-8 too.My DB/tables are utf8 but I can make search when type cyrillic words. It shows no results. With English word everything is OK:)
    Can somebody help me?!

  8. #8
    Join Date
    Apr 2007
    Location
    Athens - Greece
    Posts
    6
    Plugin Contributions
    1

    Default Re: UTF-8 Zen-Cart Tutorial

    See forums.oscommerce.com/index.php?showtopic=262287 for a possible solution?

  9. #9
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,571
    Plugin Contributions
    30

    Default Re: UTF-8 Zen-Cart Tutorial

    Hi,
    Some notes about my experience with this.
    I am rebuilding a site that developed a (non-encoding-related) problem I could not solve so I started again and since I have an english-spanish site it seemed a good idea to go UTF-8 from this new start.

    I followed the tutorial and all seemed to work ok.
    Now I am gradually adding in the template mods I did previously.
    (I’m using Notepad++ which shows the encoding of the file and can convert between different encodings and UTF-8, it reports the file encoding on the bottom right of the status bar.)

    1) Adding spanish language files (from an old contribution which I have updated to 1.38a).
    Firstly I found that any accented character was wrongly reproduced in the shop.
    Notepad++ reported the relevant language file as being ANSI encoded.
    I converted this to UTF-8, the accented characters in the file changed to unrecognised characters which once corrected displayed correctly in the shop.

    2) Next I started getting blank screens on certain places in the shop.
    I found that this was due to now having the spanish.php (or english.php) encoded as “UTF-8” instead of “UTF-8 without BOM”.
    Things seem ok now.

    So, I don’t know whether I now have to convert every file in the shop whether pure php or only the language files to have things as they ”should be”?

    Regards
    Steve

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

    Default Re: UTF-8 Zen-Cart Tutorial

    Language files: all should be UTF-8 without BOM.

    Template files and other PHP files: any file that contains special characters should also be converted to UTF-8 without BOM. However, if you've used language constants properly, you should never need to touch any other files.

    SQL files: the files in the zc_install folder are only used during installation or upgrade. As such, if your site is already installed, there's no need to convert them.
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Desperate for help - Zen Cart / PHP 5 / UTF-8 issues
    By gingabox in forum General Questions
    Replies: 13
    Last Post: 15 Jun 2010, 05:45 AM
  2. Updated wamp + zen cart tutorial for Zen Cart 1.3.8a and Wamp Server 2.0i
    By dakos in forum Installing on a Windows Server
    Replies: 20
    Last Post: 29 Mar 2010, 01:07 AM
  3. Where to get Tutorial or Help file for Zen-Cart?
    By chungenhung in forum General Questions
    Replies: 9
    Last Post: 22 Jul 2009, 02:10 PM
  4. Zen Cart with UTF-8 database
    By thewolf in forum General Questions
    Replies: 5
    Last Post: 19 Jul 2007, 12:37 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