Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Jan 2008
    Location
    Chevreuse, France
    Posts
    273
    Plugin Contributions
    0

    Default Accent replaced by special characters in ez-pages box heading

    This has only happened with the ez-pages box heading. "Actualités" is being shown as "Actualités" whereas all the titles, product categories, product descriptions etc. are being correctly shown. Is this something to do with ez-pages or has something been broken. I would add that I haven't changed any of my files (apart from "ez_pages_definitions.php"). Any ideas ? Thanks !
    Pete
    zc 1.3.9h
    www.gardenserre.fr

  2. #2
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,162
    Plugin Contributions
    0

    Default Re: Accent replaced by special characters in ez-pages box heading

    Look here:
    includes/ languages/ english/ extra_definitions/your_template/ ez_pages_definitions.php

    define('BOX_HEADING_EZPAGES','Actualités');
    Mark
    Hare Do

  3. #3
    Join Date
    Jan 2008
    Location
    Chevreuse, France
    Posts
    273
    Plugin Contributions
    0

    Default Re: Accent replaced by special characters in ez-pages box heading

    Quote Originally Posted by haredo View Post
    Look here:
    I don't get you. That's where I've changed the title (I've had to delete the accent temporarily for the time being if you look at the site). The problem is that in the front end of the site, if I add the accent "é" the title displays "Actualités" whereas all the other box headings show correctly the French accents. So the problem appears to be solely in connection with ez pages.
    Pete
    zc 1.3.9h
    www.gardenserre.fr

  4. #4
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,162
    Plugin Contributions
    0

    Default Re: Accent replaced by special characters in ez-pages box heading

    Mark
    Hare Do

  5. #5
    Join Date
    Jan 2008
    Location
    Chevreuse, France
    Posts
    273
    Plugin Contributions
    0

    Default Re: Accent replaced by special characters in ez-pages box heading

    Quote Originally Posted by haredo View Post
    Have you read up on this:
    Many thanks. I've got an html editor for all that so replacing the "é" by "é" solves the problem but what I don't understand is why this only occurs with the ez pages heading and none of the others ? Weird !
    Pete
    zc 1.3.9h
    www.gardenserre.fr

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

    Default Re: Accent replaced by special characters in ez-pages box heading

    That looks like a conflict between character sets ... as if your database is set to one thing but your language file is set to another. Or maybe you're editing french text which wants a UTF8 or other character set, when your admin is in english mode and set to iso-8859-1 or some other non-matching character set.

    Many possibilities.
    .

    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.

  7. #7
    Join Date
    Jan 2008
    Location
    Chevreuse, France
    Posts
    273
    Plugin Contributions
    0

    Default Re: Accent replaced by special characters in ez-pages box heading

    Quote Originally Posted by DrByte View Post
    That looks like a conflict between character sets ... as if your database is set to one thing but your language file is set to another. Or maybe you're editing french text which wants a UTF8 or other character set, when your admin is in english mode and set to iso-8859-1 or some other non-matching character set.

    Many possibilities.
    Yes, in french.php, the language code is iso-8859-1
    // charset for web pages and emails
    define('CHARSET', 'iso-8859-1');
    whilst the database specifies UTF-8 Unicode (utf8). However, this doesn't appear to have any bearing anywhere else on the site, its just the ez pages heading that has a problem. Could it just be a case of changing iso-8859-1 in french.php to utf-8 or is it more complicated that ?
    Pete
    zc 1.3.9h
    www.gardenserre.fr

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

    Default Re: Accent replaced by special characters in ez-pages box heading

    Quote Originally Posted by petek View Post
    includes/ languages/ english/ extra_definitions/your_template/ ez_pages_definitions.php

    define('BOX_HEADING_EZPAGES','Actualités');
    What's the file encoding set to for that file? If your site is operating as iso-8859-1 (aka latin1), then you'll need to be sure that your text editor is also saving the file in that format. Don't save the files in UTF8 encoding if you're not using UTF8 on the rest of your site.
    .

    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.

  9. #9
    Join Date
    Jan 2008
    Location
    Chevreuse, France
    Posts
    273
    Plugin Contributions
    0

    Default Re: Accent replaced by special characters in ez-pages box heading

    Quote Originally Posted by DrByte View Post
    What's the file encoding set to for that file? If your site is operating as iso-8859-1 (aka latin1), then you'll need to be sure that your text editor is also saving the file in that format. Don't save the files in UTF8 encoding if you're not using UTF8 on the rest of your site.
    The text editor I'm using is Dreamweaver. There's nothing in ez_pages_definitions.php to suggest what its file encoding is - how do I find that out ? Apart from that, all I can see is that the main language file, ie french.php, specifies iso-8859-1 as the file encoding whereas when I look at my database, I see nothing but UTF8. But this doesn't affect the way all the other text on the site is displayed.
    Pete
    zc 1.3.9h
    www.gardenserre.fr

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

    Default Re: Accent replaced by special characters in ez-pages box heading

    Let's leave your database out of this, because the text in question is coming from a PHP file, not the database.

    The "strange characters" you said are being displayed are classic examples of trying to display accented characters in a character set that doesn't support them.
    It seems as though the following is happening:

    a) because your french.php file has CHARSET set to iso-8859-1, that will (as expected) set <meta charset=iso-8859-1>. Do NOT change this.
    b) next, your ez_pages_definitions.php contains a define for 'Actualités', but I'm guessing that the file has somehow been saved as UTF-8 encoding, not ANSI/ASCII encoding.

    Thus, when the browser encounters the 'Actualités' word, it tries to render the é that's stored as a UTF8-encoded symbol, but the translation of that to iso-8859-1 for display converts it to é instead.

    I suspect the solution is to use a plain text editor, such as the free Notepad++ (notepad-plus.sf.net) and save the file in iso-8859-1 / latin1 encoding, and NOT in utf8-encoding. Then upload the edited file back to your server. I no longer use Dreamweaver, and don't recall what options it has for saving files in various encodings.
    .

    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. Accent replaced by special characters on invoice
    By kizmark in forum General Questions
    Replies: 1
    Last Post: 23 Jul 2012, 04:06 PM
  2. Replies: 2
    Last Post: 25 Oct 2010, 11:52 PM
  3. Adding characters to be replaced on search
    By juno in forum General Questions
    Replies: 0
    Last Post: 22 Jun 2009, 09:40 PM
  4. special date box in checkout pages
    By cjacin75 in forum General Questions
    Replies: 5
    Last Post: 29 Nov 2008, 10:39 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