Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Dec 2012
    Posts
    5
    Plugin Contributions
    0

    xhtml problem Change CHARSET for home page & Localizing v1.5.1 for Vietnamese language

    Dear all,

    1. I am building a shop for Vietnamese language and I found this in source code of home page:
    HTML Code:
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    Because my native language requires UTF-8, so I wanna change charset from "iso-8859-1" to "utf-8",
    otherwise the web browser displays wrong.
    I have tried to change many things in english.php and query_factory.php but the problem was not fixed.
    Please show me how to make it change.

    2. I tried to find language package for Vietnamese fit to the version 1.5.1 but it seems the latest version
    is for 1.3.8. Please show me the way to create new language package, so I can do it myself and hope able
    to submit to the community.

    I long to see your help. Thank you so much,

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Change CHARSET for home page & Localizing v1.5.1 for Vietnamese language

    A brand new install of v1.5.1 is ALREADY entirely in utf-8, and will NOT show as iso-8859-1.

    How did you get your site to be using iso-8859-1 ?

    Maybe your language pack is written with CHARSET defined as iso-8859-1 in its vietnamese.php file? You'll need to fix that, and upgrade everything else missing in that language pack to include the things added/changed in v1.5.1
    .

    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
    Dec 2012
    Posts
    5
    Plugin Contributions
    0

    Default Re: Change CHARSET for home page & Localizing v1.5.1 for Vietnamese language

    Thank DrByte for your quick reply.

    I knew that v1.5.1 is compatible with UTF-8, however what I got is "view source" from the home page "localhost/zen/" as the following:
    Name:  iso.jpg
Views: 323
Size:  56.5 KB
    You could see the charset in the red box. Is there anything wrong when I installed it?
    In addition, there has been no language package for Vietnamese with v1.5.1 right now. So I would want to know how to create this package, for me, and for others if I think its translating quality is acceptable.

    Thank you DrByte,

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Change CHARSET for home page & Localizing v1.5.1 for Vietnamese language

    In a fresh install of Zen Cart v1.5.0 and v1.5.1, when you choose View Source, you'll see:
    Code:
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    If yours is showing iso-8859-1, then your CHARSET in your english.php (or whatever language file you're using) is set to iso-8859-1. THIS IS VERY COMMON IF YOU ARE UPGRADING FROM AN OLD VERSION, and in the case of an upgrade, if your old site was actually using iso-8859-1, then converting your database to utf8 is a MUCH MORE COMPLEX ISSUE.

    You haven't indicated whether this is a new install or an upgrade.
    .

    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
    Dec 2012
    Posts
    5
    Plugin Contributions
    0

    Default Re: Change CHARSET for home page & Localizing v1.5.1 for Vietnamese language

    Dear DrByte,

    My site is a brand new 1.5.1, not an upgraded version. I just installed new template "Sheffield Blue".
    Could this template is the problem make change the charset of website?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Change CHARSET for home page & Localizing v1.5.1 for Vietnamese language

    Then you've changed your english.php file incorrectly.
    .

    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.

 

 

Similar Threads

  1. change size of price in new products for month on home page
    By ebaobao in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Oct 2011, 09:26 PM
  2. Replies: 5
    Last Post: 1 Sep 2010, 06:20 PM
  3. Change order of home page - featured items above new products for december--
    By abs007 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Dec 2009, 02:25 PM

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