Page 11 of 15 FirstFirst ... 910111213 ... LastLast
Results 101 to 110 of 145
  1. #101
    Join Date
    Nov 2010
    Posts
    6
    Plugin Contributions
    0

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

    Hi everyone!

    I was removing all the countries I did not need from the countries and changed Spain to España so everything would be in spanish on my sitea fter that started to get a question mark symbol for the Ñ character in the registration form drop-down.

    So I followed this steps to solve it:

    1. I inserted España in the database, which lead me to an error in the purchase confirmation email, it displayed the ñ when inserting the country, but solved the registration form issue.

    2. I deleted España from the countries table and added it again after changing the encoding of countries_name database field, and inserted it again.

    3. I tried changing the encoding of the field to utf8_spanish_ci

    4. Changed the whole database to UTF-8 from COLLATE in phpMyAdmin

    6. I´ve created the file my_db_charset.php in /includes/extra_configures and also in admin/includes/extra_configures

    7. I downloaded the database to my pc and using UltraEdit I changed all instance of latin1 to utf8, and utf8_latin_ci to utf8_spanish_ci

    The rest of special characters in my site are displayed correctly. None of the above helped me....

    The site is www.touchtoys.es and I´m running ZenCart 1.3.9d with a template from zencart-template

    I´m stating to go crazy due to this error, any ideas where I might messed up or what am I missing?

    Thanks for everything!

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

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

    6. I´ve created the file my_db_charset.php in /includes/extra_configures and also in admin/includes/extra_configures
    How does España display in the country list in admin?

  3. #103
    Join Date
    Nov 2010
    Posts
    6
    Plugin Contributions
    0

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

    THANK YOU VERY MUCH TORVISTA!!!

    I checked it in the country list, which was displayed with the same odd character. So I changed it there and solved the problem!

    I own you a couple of beers and some tapas!!!

  4. #104
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,586
    Plugin Contributions
    30

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

    Point 6 was the key to ensure the character entered in admin got stored in the database as UTF-8.
    You should delete or fix the accents on these two provinces too or you will not be able to check your validation.

    [QUOTE
    theForm.zone_id.options[2] = new Option("K�rnten", "99");

    theForm.zone_id.options[1] = new Option("Baden W�rtemberg", "80");
    [/QUOTE]

    Nice site!

  5. #105
    Join Date
    Nov 2010
    Posts
    6
    Plugin Contributions
    0

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

    I just left three countries since we do not want to expand worldwide just now ;-)

    Do I have to chance that as well? and where do I change that lines?

    Thanks again for everything!

  6. #106

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

    Hi, I'm looking for some advice regarding my tables.

    I've converted my database as per the tutorial.
    Now, when I create new tables in my databse, they use utf8_general_ci collation.
    My existing tables (the ones created when I installed Zen Cart) are still showing latin1_swedish_ci.

    Does this matter?
    Should I convert the latin ones to utf8?
    I tested converting 1 table from latin to utf8 and it doesn't seem to have broken anything but I did notice the columns in the table are still latin. I can convert the columns to utf-8 too if I need to.

    I'd like to get everything to utf-8 but I don't know if doing it would break my cart?

    Any advice would be appreciated guys

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

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

    As for the tables and the overall database, if you change those settings then it will ensure that new columns added to those tables or new tables added to that database will use the new character set.

    Converting the columns is what's important for your data, but if you do that without protecting the data inside those columns, you'll end up with corrupted data.

    I'm not sure which tutorial you're talking about. There are about 10 different ideas tossed around in this thread by various people, with varying degrees of accuracy.
    .

    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.

  8. #108

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

    Thanks for the reply Dr Byte.
    The tutorial I was referring to was the original one, in post #1.

    I'm worried about corrupting data by converting tables so I may start by converting a couple of small tables and wait for a week or two and if there are no problems, do another couple of tables.
    It will take a while but hopefully I won't screw anything up!

    If you have any better ideas I'm all ears :)

    Thanks again for your help

  9. #109
    Join Date
    Jan 2011
    Posts
    3
    Plugin Contributions
    0

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

    The help here worked great for me.
    I've installed v1.3.9h like two weeks ago, the tutorial worked great to get Spanish language running.
    Two small notes: Database was allready utf8 collation; also, query_factory.php comes with some logic to assign tf8, so no need to make this change:
    //BOF changed for utf-8
    mysql_query('SET NAMES "utf8"', $this->link);
    //EOF changed for utf-8.

    *****************
    Aside from that, to beginners like me I recommend making sure you work one language at a time, one file at a time -making a safe coopy of your original file-.
    *****************
    Finally, using View | Character Encoding to make sure you're encoding right from the start, was of great help to me.

    Thank you so much !!

    Carlos

  10. #110
    Join Date
    Feb 2011
    Posts
    1
    Plugin Contributions
    0

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

    Using the latest version of Zen Cart having updated from a previous version I ahve added French, German and Spanish. All works well except Spanish. However using the my_DB_charset setting to utf8 the Spanish is working OK.

    Is it possible to introduce an if statement to the PHP file my_db_charset to just use the utf8 setting for Spanish ???

    Yes I am new to this

 

 
Page 11 of 15 FirstFirst ... 910111213 ... 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