Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    Join Date
    Mar 2012
    Posts
    132
    Plugin Contributions
    0

    Default Re: Small encoding problem with French accents

    I took the server response header also:

    Status: HTTP/1.1 200 OK
    Set-Cookie: mediaplan=r1; path=/; expires=Mon, 02-Apr-2012 03:35:22 GMT
    Date: Fri, 30 Mar 2012 15:28:10 GMT
    Server: Apache/2.2.X
    X-Powered-By: PHP/5.3.10
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Content-Encoding: gzip
    Vary: Accept-Encoding
    Set-Cookie: zenid=rl36jerr6jc0bke5qv9ro6vo61; path=/xstore; domain=.xstore.x; HttpOnly
    Connection: close
    Transfer-Encoding: chunked
    Content-Type: text/html; charset=iso-8859-15

    That chunked encoding is little unknown to me. Apache 2.2 + Mod-php? If I remember right some things like webdav nginx didn't allow login with chunked encoding if password had umlauts.

  2. #12
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Small encoding problem with French accents

    .

    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. #13
    Join Date
    Mar 2012
    Posts
    132
    Plugin Contributions
    0

    Default Re: Small encoding problem with French accents

    Thank you very much.
    Now I feel stupid. That was among first things I checked but FTP transfer had failed and it still was utf-8! I owe you one. Works like a beast. Maybe a coffee & donut to tip jar(rest of evening goes finding that I assume).

  4. #14
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Small encoding problem with French accents

    Glad it was a simple fix for you :)

    As for tips, it's easy: www.zen-cart.com/donate

    Cheers!
    .

    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.

  5. #15
    Join Date
    Mar 2012
    Posts
    132
    Plugin Contributions
    0

    Default Re: Small encoding problem with French accents

    Quote Originally Posted by DrByte View Post
    Glad it was a simple fix for you :)

    As for tips, it's easy: www.zen-cart.com/donate

    Cheers!
    Well, donating was easy. Unfortunately everything is still not ok.

    My early fix attempts included changing all admin tables collation to UTF-8 Now I think that or some earlier fix attempt is messing around because on live site everything looks ok but when trying to update or make new product a) on some products it looses title in admin eg. on live site title looks ok but when trying to update it shos only blank title. Also when trying to update an old product it seems to produce error:

    [19-Apr-2012 01:12:25 UTC] PHP Warning: htmlspecialchars() [<a href='function.htmlspecialchars'>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /includes/modules/product/collect_info.php on line 299

    [19-Apr-2012 01:12:25 UTC] PHP Warning: htmlspecialchars() [<a href='function.htmlspecialchars'>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /includes/modules/product/collect_info.php on line 401

    So some of my earlier fixes seems to mess things or that earlier admin utf-8 collation change

    Also search produces wrong character sets & also contact form

    "Funny" thing was that it seemed to work & then everything went wrong again after updating few products.

    Starting to get frustrated with this, so close...but

  6. #16
    Join Date
    Jan 2014
    Location
    Canada
    Posts
    1
    Plugin Contributions
    0

    Idea or Suggestion Re: Small encoding problem with French accents

    Quote Originally Posted by torvista View Post
    It looks as though the text in your database is 8859.

    The common title comes from the language file.

    Open your french.php or /YOUR_TEMPLATE/french.php if you are using it, with something that can show the encoding like Notepad++ and check the file is encoded as ANSI and not UTF-8.

    If it is UTF-8,
    copy all,
    cut,
    change encoding to ANSI,
    paste,
    save.
    WORKED FOR ME THANKS!!

    Little note: I did not have to copy and save as new file, as the last version of notepad allows to change encoding in the menu.

  7. #17
    Join Date
    Oct 2016
    Location
    France
    Posts
    3
    Plugin Contributions
    0

    Default Re: Small encoding problem with French accents

    Hello,
    I upraded zencart 1.3.9h. to 1.1.5a by myself from this procedure: https://www.zen-cart.com/content.php?148
    I had the french language pack installed on my 1.3.9h version. And the box_multi_EZ_pages module.

    My site is: h t t p : / / w a - s h i a t s u - n i c e . f r

    Here are the php and MySQL versions:
    Serveur Hôte: mars.fr.planethoster.net (10.185.0.21) Hôte Base de Données: localhost (127.0.0.1)
    OS Serveur: Linux 3.10.0-427.10.1.lve1.4.7.el7.x86_64 Base de Données: MySQL 5.5.5-10.1.18-MariaDB

    Serveur HTTP: LiteSpeed
    Version PHP: 5.6.27 (Zend: 2.6.0) PHP Limite mémoire: 256M PHP Safe Mode: Off
    PHP Uploads de fichiers: On Taille max upload par fichier: 64M Taille max POST: 128M

    Since this upgrade everything until now is well. Including the french font with accents in all the website :)).
    The site is in UTF-8. And the database also.

    I just have the pages uploaded from "tools / define page editor" that can't be correctly loaded:

    define_main_page
    define_page_2
    define_privacy
    ...

    Here is an exemple:
    http://wa-shiatsu-nice.fr/index.php?...age=contact_us

    The "é" becomes "?" in a black square.

    Would you have an idea?

    These page are made in UTF-8. They shouldn't have trouble.

    Best regards.

  8. #18
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: Small encoding problem with French accents

    @Cdclp, now that your database is setup in utf8 (you ran the "Convert DB to UTF8" script, right?) and you've set your french.php file to indicate that the site uses UTF8 as its encoding scheme ... it's time to update your language files (like that define_contact_us.php).

    It looks like that file (and most likely others that you've "carried over" from your 1.3.9h/ASCII version) is still ASCII-encoded; that's where the funny symbols originate.

    What you can do is use a file-editor (like NotePad++ ... not Word or DreamWeaver) and, for each file (NotePad++):
    1. Open the existing file, e.g. define_contact_us.php.
    2. Click the "Encoding" tab. If it shows "Encode in UTF-8", you're finished for this file. Continue, otherwise.
    3. Open a new file, click the "Encoding" tab and make sure that "Encode in UTF-8" is selected.
    4. Go back to the original file, press Ctrl+a (to select all) and then Ctrl+c (to copy those contents).
    5. Click over to the new file and paste (Ctrl+v) the contents you just copied, converting those contents to UTF-8.
    6. Save the original file as a backup, e.g. define_contact_us.php~
    7. Save the new file as the to-be-used name, e.g. define_contact_us.php

    It's a lengthy process, but hopefully you don't have many language files to handle!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. French translation problem with attributes
    By Francois Bernard in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 7 Sep 2015, 09:05 PM
  2. French accents in address
    By paul3648 in forum General Questions
    Replies: 0
    Last Post: 25 Apr 2011, 10:11 PM
  3. Problem with encoding charset in e-mail sent to customers
    By cyberole in forum General Questions
    Replies: 0
    Last Post: 25 May 2006, 02:55 AM
  4. Remove the french canadian accents
    By [email protected] in forum Basic Configuration
    Replies: 3
    Last Post: 11 May 2006, 04:34 AM

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