Thread: Charset change

Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2011
    Posts
    70
    Plugin Contributions
    0

    Default Charset change

    Noticed the shift to UTF-8 will be standard in new database installs, which is reflected in /languages/english.php (replacing iso-8859-1).

    I assume the majority of current sites are using latin1/iso-8859-1, could the move to utf-8 cause any issues?

    I actually would love to move/upgrade to utf-8 to solve Paypal problems returning corrupted non-English names and addresses, but I believe this has to be a manual task--correcting the corruptions caused by changing the encoding. Not something that could be part of the upgrade process correct?

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

    Default Re: Charset change

    The UPGRADE process does NOT convert any of your data to UTF8. And indeed you should keep your iso-8859-1 setting in YOUR existing english.php files if your site has been using that already.

    Converting your database content is a completely separate topic and activity, which should only be done with a solid understanding of the MANY potential problems you might encounter when doing so.

    UTF8 is set as database default in v1.5.0 ONLY FOR NEW INSTALLS without historical data.
    .

    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
    Join Date
    Jan 2011
    Posts
    70
    Plugin Contributions
    0

    Default Re: Charset change

    Thanks for the confirmation.
    I appreciate the warning regarding updating to utf8.

  4. #4
    Join Date
    Apr 2009
    Posts
    417
    Plugin Contributions
    2

    Default Re: Charset change

    I recently change my char set to UFT8 as I needed to allow special foreign characters for addresses. The issues I have were related to Quotes, non breaking spaces and currency symbols. you get a black diamond with a question mark in the centre for all the characters that are not recognised. This was my fault for using MS Word to create the descriptions and easy populate to update stock. on the site the I replaced the following
    Replace ’ with '
    Replace ‘ with '
    Replace ” with "
    Replace “ with "
    Replace – with -
    Replace … with ...
    Replace £ with £
    Replace © with ©
    Replace ™ with ™
    Replace ® with ®
    the hardest one was the non breaking space which I had to change in word the reload all the product details.

    Don't know it that is helpful. Hopefully so!

    Ps Don't forget you also need to change your PHP files.
    Mark Brittain
    http:\\innerlightcrystals.co.uk\sales\

  5. #5
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: Charset change

    Quote Originally Posted by brittainmark View Post
    Ps Don't forget you also need to change your PHP files.
    When you say you also need to change your PHP files what do you mean? Can you please clarify?

    Thanks!

  6. #6
    Join Date
    Apr 2009
    Posts
    417
    Plugin Contributions
    2

    Default Re: Charset change

    Quote Originally Posted by BlessIsaacola View Post
    When you say you also need to change your PHP files what do you mean? Can you please clarify?

    Thanks!
    I use Eclipse as my PHP editor and each PHP files is stored with a character set. Also on the web server I use it stores all the PHP files with a character set. It was necessary for me to check all of the pages for the same codes/characters then save them with the new character set.
    Mark Brittain
    http:\\innerlightcrystals.co.uk\sales\

 

 

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. Charset
    By Yen_JS in forum General Questions
    Replies: 2
    Last Post: 29 Dec 2010, 03:54 PM
  4. Replies: 0
    Last Post: 24 Feb 2010, 05:20 PM
  5. Charset and 
    By mrbungle in forum General Questions
    Replies: 1
    Last Post: 19 Feb 2009, 08:14 AM

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