Page 8 of 15 FirstFirst ... 678910 ... LastLast
Results 71 to 80 of 145
  1. #71
    Join Date
    Apr 2007
    Posts
    182
    Plugin Contributions
    0

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

    does this text look right?
    ЧћЧ•Ч¦ЧЁ Ч–Ч” Ч”ЧЄЧ•Ч•ЧЎЧЈ Ч‘Ч™Ч•Чќ щбъ, 13 Ч‘ошх, 2010

  2. #72
    Join Date
    Apr 2007
    Posts
    182
    Plugin Contributions
    0

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

    If that is right, just do a search of the files with dreamweaver for part of that language, shouldn't be too hard to track down. Give it a go!

  3. #73
    Join Date
    Jun 2009
    Location
    Israel
    Posts
    161
    Plugin Contributions
    0

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

    I use Total Commander since it can track down text strings within files. Thing is, I did a simple test. In the english version you'd expect the days to be "sunday, monday" etc'. So I looked for "sunday" and it didn't catch anything, meaning ZC somehow generates this on the fly.

  4. #74
    Join Date
    Apr 2007
    Posts
    182
    Plugin Contributions
    0

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

    No, I don't think this is true, as it would not generate Hebrew on the fly. You need to do a search for a part of the hebrew with whatever file search tool you have. Once you find the file, you need to change the encoding of that file. Good luck

  5. #75
    Join Date
    Jun 2009
    Location
    Israel
    Posts
    161
    Plugin Contributions
    0

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

    Hmm, I checked my SQL database and few tables have "latin1_swedish_ci" in the collation column instead of utf8, does that pose any problem?

  6. #76
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

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

    I suspect your DATE_FORMAT_LONG definition is wrong, or your server is not generating the date "words" properly when the strftime() function is called. You may have to resolve the matter with your hosting company by confirming that they've got a valid hebrew language config set in their PHP.
    NOTE: All the date "words" are generated by the PHP configuration on your server. Zen Cart DOES NOT spell out all the days of the week and months of the year in a language file.

    files involved in english to display the "date added" content:
    /includes/languages/english/YOUR_TEMPLATE/product_info.php (and other product types too):
    Code:
    define('TEXT_DATE_ADDED', 'This product was added to our catalog on %s.');
    /includes/languages/YOUR_TEMPLATE/english.php:
    Code:
      define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
    /includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php (and other product types too):
    Code:
          <p id="productDateAdded" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_ADDED, zen_date_long($products_date_added)); ?></p>
    /includes/functions/functions_general.php in the zen_date_long() function:
    Code:
        return strftime(DATE_FORMAT_LONG, mktime($hour,$minute,$second,$month,$day,$year));
    .

    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. #77
    Join Date
    Jun 2009
    Location
    Israel
    Posts
    161
    Plugin Contributions
    0

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

    Hmm, I've already converted these files to UTF-8 :) But...I think I may have found the problem. I didn't convert the admin hebrew language (it's basically the old english language files) files so I get this error in the admin aswell. I'm going to convert them and then check again, hoping this will resolve the problem. The server settings should be good. If this doesn't work I'll check deeper into it. Thanks a lot Dr.Byte, I'm afraid this forum is huge so I posted in few places to make sure it gets attention. Didn't mean to upset anyone.

  8. #78
    Join Date
    Jun 2009
    Location
    Israel
    Posts
    161
    Plugin Contributions
    0

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

    Hmm...I noticed that if I change the encoding back to windows-1255 on the browser it displays fine. Hmmm..................this doesn't relate to the SQL anywayn, does it?

  9. #79
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

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

    No connection to SQL.
    I suspect maybe the server's language file may not be properly encoded?
    Just a guess
    .

    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.

  10. #80
    Join Date
    Jun 2009
    Location
    Israel
    Posts
    161
    Plugin Contributions
    0

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

    I understand. How is that file named? php.ini perhaps? I'm also wondering, if another cart is installed on the server and uses charset windows-1255, will it be badly affected from changing the encoding of the server language file?
    Last edited by Asdesign; 16 Mar 2010 at 07:35 PM.

 

 
Page 8 of 15 FirstFirst ... 678910 ... 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