Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24
  1. #11
    Join Date
    Mar 2010
    Posts
    196
    Plugin Contributions
    0

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

    and another question, do I need to save any fileas as without BOM?I am so much confused now after reading a lots of posts here and trying to figure out the truth...

    P.s:I am at the moment using my local PC(localhost for testing) and latest version of zencart

  2. #12
    Join Date
    Mar 2010
    Posts
    196
    Plugin Contributions
    0

    Default Re: Russian Language PAck

    and another question, do I need to save any fileas as without BOM?I am so much confused now after reading a lots of posts here and trying to figure out the truth...

    P.s:I am at the moment using my local PC(localhost for testing) and latest version of zencart

  3. #13
    Join Date
    Jan 2004
    Posts
    66,391
    Blog Entries
    7
    Plugin Contributions
    81

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

    Quote Originally Posted by Ms_X View Post
    Create a new file for it:
    /includes/extra_configures/my_db_charset.php
    Code:

    <?php define('DB_CHARSET', 'utf-8');
    Be sure to do that in your /RENAMED-ADMIN/includes/extra_configures folder too!!!!!
    If you don't, then your admin activity won't be treated as utf-8.

    Quote Originally Posted by Ms_X View Post
    So the question is what to do now? I looked in phpmyadmin, when i see the structure of my database, all the tables collation is set to "latin1_general_ci" and at the end of the list on the last row (where one can see the number of pages) I see in collation field "utf8_general_ci".
    Well, I guess that's possible if you hadn't set the /zc_install/includes/installer_params.php file to use utf-8 as well:
    Code:
    <?php  define('DB_CHARSET', 'utf8');
    I'm pretty sure you want to use "utf8", not "utf-8" when it comes to the DB_CHARSET. I think using "utf-8" would apply only in the language file.
    Quote Originally Posted by Ms_X View Post
    the name my_db_charset.php should be written as my_db_charset.php or instead of my_db the name of my db should be written?
    The filename doesn't matter. It could be called "fred.php" as long as the content inside is correct.

    Quote Originally Posted by Ms_X View Post
    and another question, do I need to save any fileas as without BOM?
    Yes. ALL files that contain utf-8 encoding in them need to be saved as UTF8-without-BOM.
    .

    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.

  4. #14
    Join Date
    Jan 2004
    Posts
    66,391
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Russian Language PAck

    Responded to your questions here: http://www.zen-cart.com/forum/showth...58#post1002758
    .

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

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

    Thanks a lot for your response, Dr. Byte,

    I am now installing new fresh zencart using your advice and that article. I just set the /zc_install/includes/installer_params.php file to use utf-8 as well:

    <?php define('DB_CHARSET', 'utf8');

    and when i started intallation process of zen cart I got Bad Getway Error. But when I changed installer_params.php file back to what was there originally, I see Instalation page. Any suggestions on what should I do now?:-(I guess the problem is somewhere here that my russian characters displayed as question marks. I am looking im Mysl forums as well to find the answer,but unfortunately no results yet:-(

  6. #16
    Join Date
    Mar 2010
    Posts
    196
    Plugin Contributions
    0

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

    Sorry for saying I could not install it before. I just restarted my server and refreshed cash. Everything installed and on web site everything is shown in russian. Database tables are all set to utf_8_general_ci. Now I have different problem:When I add category or product in russian, after i save it, it is shown on the websites catalogue site as no name product like on the attached picture...
    Attached Images Attached Images  

  7. #17
    Join Date
    Mar 2010
    Posts
    196
    Plugin Contributions
    0

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

    If I write using latin alphabet then i see the names of the products...So there must be a problem with russian characters then:-(

  8. #18
    Join Date
    Mar 2010
    Posts
    196
    Plugin Contributions
    0

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

    here some setting of the russian file:

    @setlocale(LC_TIME, 'ru.utf8');
    ....


    // charset for web pages and emails
    define('CHARSET', 'windows-1251');

    If I change to:
    define('CHARSET', 'utf-8');

    I get site translated the way that i see instead of russian words the ??? inside black diamonds. When do i need to convert files to utf without bom?before insyallation or after?i did not do it yet...

  9. #19
    Join Date
    Mar 2010
    Posts
    196
    Plugin Contributions
    0

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

    I was just thinking if this problem could occur because te old version of PHP and mysql?I have MySQL 5.0.45 and PHP/5.2.4 installed...

  10. #20
    Join Date
    Jan 2004
    Posts
    66,391
    Blog Entries
    7
    Plugin Contributions
    81

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

    Quote Originally Posted by Ms_X View Post
    When do i need to convert files to utf without bom?before insyallation or after?i did not do it yet...
    Either is fine. Before is okay. After is okay.

    Quote Originally Posted by Ms_X View Post
    I was just thinking if this problem could occur because te old version of PHP and mysql?I have MySQL 5.0.45 and PHP/5.2.4 installed...
    MySQL version is unlikely to be a problem.

    If you have the ability to use PHP 5.3 it might help.
    .

    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 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Problems with displaying Russian characters and UTF-8
    By pcontente in forum Addon Language Packs
    Replies: 31
    Last Post: 4 Mar 2011, 03:22 PM
  2. Russian Language Buttons
    By finlander in forum Addon Language Packs
    Replies: 1
    Last Post: 19 Jan 2011, 10:37 AM
  3. Search not working with Russian language characters
    By etrader in forum Addon Language Packs
    Replies: 8
    Last Post: 28 Nov 2008, 12:20 AM
  4. Russian Language in catagory
    By hlubach in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 2 Jul 2008, 07:19 PM
  5. russian chars dosnt show
    By maxus in forum General Questions
    Replies: 6
    Last Post: 30 Apr 2008, 11:43 AM

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