Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2010
    Posts
    3
    Plugin Contributions
    0

    application error Encoding Problem !!

    [FONT="Times New Roman"]
    hi there,

    I'm trying to view my web site in Arabic..


    I did the following changes ( Zen Cart 1.3.9) :

    1. in folder : includes/languages/english.php
    PHP Code:
    // charset for web pages and emails
    define('CHARSET''utf-8'); 
    2. I added a file in folder: includes/extra_configures which contains:
    PHP Code:
    <?
        define('DB_CHARSET', 'utf-8');
    ?>
    the result?

    only the informations stored in the database, are viewed in Arabic..

    but other Arabic words which I defined in php files are not in Arabic..

    so,
    I changed:
    PHP Code:
    // charset for web pages and emails
    define('CHARSET''utf-8'); 
    to
    PHP Code:
    // charset for web pages and emails
    define('CHARSET''windows-1256'); 
    the result?

    the informations stored in the database, are NOT viewed in Arabic..

    but other Arabic words which I defined in php files are IN Arabic !!!


    any suggestions?
    Thanks .
    [/FONT]

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

    Default Re: Encoding Problem !!

    The content which you've stored in your PHP *files* is evidently saved as windows-1256, and so when you change the site to display in utf-8, all that content is invalid.

    You need to re-edit all those PHP files that contain your arabic text, and save them again with UTF-8-without-BOM encoding format. Then re-upload them to your server. After that they should display in UTF8 mode fine.
    .

    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
    Aug 2010
    Posts
    3
    Plugin Contributions
    0

    Idea or Suggestion Re: Encoding Problem !!

    [FONT="Times New Roman"]
    Thanks for your reply DrByte,

    You need to re-edit all those PHP files that contain your arabic text, and save them again with UTF-8-without-BOM encoding format.
    But how can I do this?

    at this moment,
    I only changed some English words in : includes/languages/english.php into Arabic

    like this one:
    PHP Code:
    // categories box text in sideboxes/categories.php
      
    define('BOX_HEADING_CATEGORIES''الاقسام'); 
    by the way,
    your reply was so quick
    [/FONT]

  4. #4
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Encoding Problem !!

    You simply need a text editor that is capable of saving in UTF8-without-BOM mode.

    I believe Notepad++ (http://notepad-plus.sf.net) will do that.
    .

    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. #5
    Join Date
    Aug 2010
    Posts
    3
    Plugin Contributions
    0

    customer issue Re: Encoding Problem !!

    [FONT="Times New Roman"]

    WoOoW !!

    you are so great DrByte !!!

    I can't believe my EYES !!!!!!!!!!!!!!


    Thaaaaaaaaaaaaaaaaaaaaaaanks a lot

    I didn't waste my time registering in this forum

    I want to give u 43,637 which is ur #posts



    now I can sleeeeeeep lool

    Thanks Dr

    by the way,
    u r so confident =)
    [/FONT]

 

 

Similar Threads

  1. v153 Strange encoding problem
    By daniellek in forum General Questions
    Replies: 13
    Last Post: 10 Feb 2016, 02:13 PM
  2. templates content encoding problem
    By Hector Gutierrez in forum General Questions
    Replies: 0
    Last Post: 25 Jul 2013, 10:34 PM
  3. Encoding problem editing portuguese language file
    By letslv in forum Addon Payment Modules
    Replies: 3
    Last Post: 18 Jun 2013, 08:14 PM
  4. Encoding problem
    By wilsonshen in forum General Questions
    Replies: 4
    Last Post: 12 Mar 2011, 03:16 AM
  5. EasyPopulate encoding problem
    By balihr in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 29 Oct 2008, 10:10 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