Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Jan 2013
    Posts
    113
    Plugin Contributions
    0

    Default language utf8 working and not working

    I've been stucked on this for so long and have read so many posts that my eyes are crossed...

    I need the cart to be in french with the usual language caracters. I followed instructions on how to change everything that needed to be to utf8 and all of a sudden everything to do with products I could type in the real caracter instead of the varation of it (ex. é instead of é) and it shows properly on the screen and properly in the meta as well.

    However, anything that shows in the headermenu or the sideboxes or the footer doesn't work... I get the weird ? ... if I define the language files with the é for instance, it does show properly on my webpage but not so on the meta tags.

    So went in search found tons of information... tried a lot of what I saw.. but can't get it fixed.

    I went and checked my database and so far all show utf8_general_ci as it should be from what I understood. I did the my_db_charset.php file recommended by Dr Bytes just in case, it didn't fix it.

    So basically, all my products show ok... and the language define pages. I don't get it.

    Anyone have any idea what I missed or did wrong?

  2. #2
    Join Date
    Jan 2013
    Posts
    113
    Plugin Contributions
    0

    Default Re: language utf8 working and not working

    forgot to list what I did:

    changed set local in both admin and includes in my english.php page to utf8 and tried the my_db_charset

    also changed the configure files ('DB_CHARSET','utf8')

    I did not touched the query_factory file as instructed.

    I'm also rechecking the database through phpMyAdmin to make sure Id idn't miss one.

    Thanks in advance

  3. #3
    Join Date
    Jan 2013
    Posts
    113
    Plugin Contributions
    0

    Default Re: language utf8 working and not working

    also this:

    added the utf8 to function_general.php if (function_exists('iconv')) $string = iconv("Windows-1252", "UTF-8//IGNORE", $string);

    same to function_email.php $mail->CharSet = (defined('CHARSET')) ? CHARSET : "UTF-8";

    class.phpmailer.php var $CharSet = "UTF-8";

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,509
    Plugin Contributions
    88

    Default Re: language utf8 working and not working

    Are you saving all your language files using the 'UTF-8 without BOM' encoding? That was one of the things that bit me during my UTF-8 conversion.

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

    Default Re: language utf8 working and not working

    a link to your site would help
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  6. #6
    Join Date
    Jan 2013
    Posts
    113
    Plugin Contributions
    0

    Default Re: language utf8 working and not working

    Torvista

    sorry... here is the link...

    http://aigui-arts.com/boutique/


    Lat9

    I only have the one language. I need the site to be french only at this time so after trying to have it default to french only and failing because it was always reverting back to english, I then switched the files... all my language files although called english so the cart would recognize whatever was in there as the default language, the "writings" in them are in french... and from what I read, I was to make everything utf8 all over which I did.

    The only thing I`m unsure about is if my changing my database to utf8_general_ci after the creation of the cart database could be the problem... although, when I look at my backup from prior the change, it says utf8 on it same as the latest backup... so I assumed it was all ok... but read in my research that I should purposely set the database to the new setting.

    let me rephrase the only think`I`m sure about is that I`m lost...
    Last edited by marieAA; 23 Jan 2013 at 01:45 AM. Reason: typosssss

  7. #7
    Join Date
    Jan 2013
    Posts
    113
    Plugin Contributions
    0

    Default Re: language utf8 working and not working

    here just in case it would save time... this is a product page where the é caracter is used and shows as it should on the product itself... but you can see that the sideboxes and the header are not behaving

    http://aigui-arts.com/boutique/index...&products_id=2

    the name of the product is as it should... the É in Économie right under the price isn`t.... and the test I did in the description part itself are showing as should
    Last edited by marieAA; 23 Jan 2013 at 01:50 AM.

  8. #8
    Join Date
    Jan 2013
    Posts
    113
    Plugin Contributions
    0

    Default Re: language utf8 working and not working

    I`ve also figured out so far that anything that I type in through Admin such as the category names and such, the caracters show as they should... it`s basically everything coming out of my language files that`s misbehaving.

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

    Default Re: language utf8 working and not working

    anything that I type in through Admin such as the category names and such, the caracters show as they should
    er, not in my browser. I see corrupt category names which come from the db, and corrupt text from the language files.There are errors whichever encoding you use which means you have multiple problems...hence your difficulty in fixing them.
    Install a new copy of Zen Cart to play with, drop in your french files and check EVERYTHING displays ok. If not, find an dfix the encoding of the offending file.
    Once all is fixed, copy them back to your shop and check they STILL all display ok.

    Then, look at the databse connection db_charset as explained in this thread:
    http://www.zen-cart.com/showthread.p...RSET-in-v1-3-9
    and ensure your collation is utf-8 on all your db tables.

    THEN correct manually through the admin the corrupt text that displays in the product descriptions and categories.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  10. #10
    Join Date
    Jan 2013
    Posts
    113
    Plugin Contributions
    0

    Default Re: language utf8 working and not working

    I will do as you advise... but so I can understand, what browser are you using and do the categories show like this:

    Cat�gories


    Cours-> (4)

    Broderie Machine (2)

    Courtepointe

    Couture (2)

    Crochet

    Broderie à la Machine

    Courtepointe

    Couture

    Machines-> (1)

    Tricot & Crochet->

    Certificat Cadeau (1)


    --------------------------------------------------------------------------------


    Tous les Produits ...

    Sp�ciaux ...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 I just restored to a working date and still not working
    By spawnie69 in forum General Questions
    Replies: 151
    Last Post: 21 Mar 2016, 02:22 AM
  2. Replies: 2
    Last Post: 25 Jan 2012, 10:56 PM
  3. Moving a working store to new domain name and not working
    By ksolito in forum General Questions
    Replies: 8
    Last Post: 19 Jun 2009, 07:44 PM
  4. language Stylesheet not working?
    By mrrcomp in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 3 May 2007, 06:24 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