Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 32
  1. #11
    Join Date
    Oct 2009
    Posts
    15
    Plugin Contributions
    0

    Default Re: Random ┬ all over my site

    I used for the conversion DrByte's tool - the same one you pointed to. Downloaded it form here: http://www.zen-cart.com/content.php?313

    I was thinking if i should change that line in english.php:

    setlocale(LC_TIME, 'en_US.ISO_8859-1');

    to

    setlocale(LC_TIME, 'en_US.utf-8');

    But i don't thing that this has anything to do with my problem. I spoke with the hosting company meanwhile - and after 2 hours of looking around my site they said it is an encoding problem somewhere.... :) voila that's technical support for you :)
    Last edited by romancoins; 21 Oct 2014 at 03:14 PM.

  2. #12
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Random ┬ all over my site

    Quote Originally Posted by romancoins View Post
    I used for the conversion DrByte's tool - the same one you pointed to. Downloaded it form here: http://www.zen-cart.com/content.php?313

    I was thinking if i should change that line in english.php:

    setlocale(LC_TIME, 'en_US.ISO_8859-1');

    to

    setlocale(LC_TIME, 'en_US.utf-8');
    But i don't thing that this has anything to do with my problem.
    On the contrary, it could have everything to do with the problem Try changing it anyway and see what happens.

    Quote Originally Posted by romancoins View Post
    I spoke with the hosting company meanwhile - and after 2 hours of looking around my site they said it is an encoding problem somewhere.... :) voila that's technical support for you :)
    Well, yes, they are correct.

    Bottom line is that you need to change any and all references of ISO_8859-1 to UTF-8 regardless of which file it is in.

    Edit /admin/includes/languages/english.php (and all other language_name.php files in that folder) and set the define for CHARSET to 'utf-8'.
    Do the same with the non-admin /includes/languages/english.php (and other language_name.php files in that folder)

    I apologise if you've already done this too, but the fact that you are still seeing these implies that you must have missed at least one of them somewhere.

    Cheers
    RodG
    Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

  3. #13
    Join Date
    Oct 2009
    Posts
    15
    Plugin Contributions
    0

    Default Re: Random ┬ all over my site

    Dear RodG thank you for your help! I appreciate it very much!

    I changed the setlocale line to utf-8. No change.

    English is my only language installed on zencart so nothing else to modify.

    I think that i am looking for a lot fo manual editing. :)

  4. #14
    Join Date
    Sep 2010
    Posts
    271
    Plugin Contributions
    0

    Default Re: Random ┬ all over my site

    I just upgraded from v1.39h to v1.53 and I had a similar problem with ┬ characters, however I had the ┬ problem in v1.39 also I think due to a database restore into a updated server MySQL v5.3 and PHP v5.4 environment. I ran this suggested convert_db2utf8.php script and it did not seem to get rid of all the ┬ characters. Thus I still have ┬ characters in my product descriptions, but not as many. Is there another scripted fix for this ?

    Are there any other PHP files we need to modify for UTF-8 ? I checked configure.php for store and admin and also the english.php in my template.
    Last edited by HeyIts007; 12 Dec 2014 at 05:04 PM.
    Thanks,
    007

  5. #15
    Join Date
    Sep 2010
    Posts
    271
    Plugin Contributions
    0

    Default Re: Random ┬ all over my site

    I've noticed that charset=iso-8859-1 is in quite a few files, not just configure.php and english.php I've only followed the instructions to edit those 3 files and the configure files were already in UTF8 format from the start.

    Other files identified include:

    /nddbc.html
    /includes/classes/class.phpmailer.php
    /includes/functions/functions_email.php
    /includes/functions/functions_general.php
    /includes/templates/template_default/templates/tpl_zc_install_suggested_default.php

    /ADMIN
    /alert_page.php
    /includes/header.php

    Does that have any impact?
    Thanks,
    007

  6. #16
    Join Date
    Jan 2004
    Posts
    64,748
    Blog Entries
    6
    Plugin Contributions
    214

    Default Re: Random ┬ all over my site

    Quote Originally Posted by HeyIts007 View Post
    Other files identified include:

    /nddbc.html
    /includes/classes/class.phpmailer.php
    /includes/functions/functions_email.php
    /includes/functions/functions_general.php
    /includes/templates/template_default/templates/tpl_zc_install_suggested_default.php

    /ADMIN
    /alert_page.php
    /includes/header.php

    Does that have any impact?
    In original ZC 1.5.3 code, any mention of iso-8859-1 in those particular files is intentional, and has nothing to do with the data coming from your database.
    .

    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. #17
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,440
    Plugin Contributions
    9

    Default Re: Random ┬ all over my site

    Quote Originally Posted by HeyIts007 View Post
    ...... Is there another scripted fix for this ?.....
    Not to my knowledge.

    I just encountered this problem yesterday with a site of a client - inherited that site with the task to do all the maintenance....

    That site had previously been upgraded from 1.3.9h to 1.5.1 (by the owner) - I did the upgrade to 1.5.3 a week ago. The site was an absolute mess, 5 additional language packs installed, some on utf-8, some on iso-8859-1 and one language pack (Romanian) with a mixed bag of both, say no more. The site displayed funny characters all over the place.

    After upgrading the Italian and Spanish packs to utf-8 versions, many of the funny characters disappeared. It left me with fixing the French and Romanian packs by changing their defines to utf-8 both in admin and catalog side. Result was less funny characters again but some of the product pages have to be edited manually - no other choice as I won't risk running the convert_db2utf8.php script because most product pages are already utf8 encoded, only some are left with iso-8859-1 encoding.

    To fix this, one would need to copy the affected product descriptions to a plain text editor (I use gedit in Linux) to strip all formating and from there back into the site's CKEditor, save and done. It is a tedious undertaking but it is the only option left to get this site cleaned up. You may have to do the same....

    A little piece of advice: if you download a new language pack, make sure that the files in the downloaded pack are all utf-8 and that the defines in the files includes/languages/your_language.php (admin and catalog) have the definitions

    PHP Code:
    // look in your $PATH_LOCALE/locale directory for available locales.. 
    setlocale(LC_TIME'es_ES.UTF8');//unix 
    setlocale(LC_TIME'Spanish_Spain.1252');//windows 
    (above example from the Spanish pack which is well maintained by torvista)

    and

    PHP Code:
    // charset for web pages and emails 
    define('CHARSET''utf-8'); 
    which are both found pretty much near the top of the files (catalog and admin side).

    Sadly, many of the language packs in the Plugins section of this site have not been updated for ages..... so caution is required.

    Cheers / Frank

  8. #18
    Join Date
    Sep 2010
    Posts
    271
    Plugin Contributions
    0

    Default Re: Random ┬ all over my site

    Hmm ok. I tried that iso-8859-1 to utf8 conversion tool, which seemed to help a bit, however as you indicated, the data seems to be another issue. I have been manually doing just what you suggested. i.e. copying the text into an editor and doing a search and replace of ┬ with null characters. This works ok, however is very tedious.

    I just did a search for characters in ZenCart Admin mode and it returned 317 product entries. Not sure if I have that many products, so I'm wondering if it means 317 occurrences of ┬ character. Anyway t's a real pain having to manually clean out the ┬ and other strange characters. I think someone mentioned some kind of module addon that can do this, so I might take a look at it.

    Thanks,
    007
    Thanks,
    007

  9. #19
    Join Date
    Sep 2010
    Posts
    271
    Plugin Contributions
    0

    Default Re: Random ┬ all over my site

    Oh seems the module mentioned was really the iso-8859-1 to utf8 conversion tool, so seems like back to manual editing.
    Thanks,
    007

  10. #20
    Join Date
    Apr 2010
    Posts
    884
    Plugin Contributions
    0

    Default Re: Random ┬ all over my site

    Dumb question... but I have to ask!

    On an old zc139h, I'm attempting to follow CONVERT TO UTF8 instructions found here:
    https://www.zen-cart.com/content.php...8859-1-to-utf8

    Step one says set the define for CHARSET to 'utf-8'.
    Step two says set DB_CHARSET to 'utf8'.

    The first reference contains a dash (utf-8), the second does not. Is that correct?

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Random Error: images not adding to items! started over night
    By kitcorsa in forum General Questions
    Replies: 3
    Last Post: 28 Oct 2011, 10:22 AM
  2. Random loading of Over-rides
    By borillion_star in forum General Questions
    Replies: 4
    Last Post: 30 Dec 2010, 03:58 AM
  3. The word "Products" showing up all over site
    By smoke133 in forum General Questions
    Replies: 4
    Last Post: 17 Sep 2008, 05:27 PM
  4. Machine Code Bad Characters - Little ┬ 's all over the site
    By milobloom in forum General Questions
    Replies: 2
    Last Post: 31 Aug 2007, 10:15 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