Forums / Templates, Stylesheets, Page Layout / Weird Code and trying edit old body data but opens erased

Weird Code and trying edit old body data but opens erased

Views: 606

Results 1 to 4 of 4
27 Apr 2013, 4:20 AM
#1
gws76 avatar

gws76

Zen Follower

Join Date:
Apr 2007
Posts:
151
Plugin Contributions:
0

Weird Code and trying edit old body data but opens erased

I'm having two issues after upgrading my site to the latest version from 1.37 to 1.5.1.

When I copy from crimson editor or notepad I get these strange symbols **Â **to pop up through out the body.

example
http://www.sullivanvitamins.com/index.php?main_page=product_info&cPath=200_140&products_id=6913

Also when I click to edit a product's information that is display on the public view such as product description it is empty on the admin side.

What is causing these issues?

http://www.SullivanVitamins.com

America's Favorite Vitamin Source & Irish Shop

27 Apr 2013, 4:24 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Weird Code and trying edit old body data but opens erased

Set your 1.5.1 to use the old CHARSET you were using in 1.3.x:
http://www.zen-cart.com/content.php?313-should-i-convert-my-store-from-iso-8859-1-to-utf8

.
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.

30 Apr 2013, 12:37 AM
#3
gws76 avatar

gws76

Zen Follower

Join Date:
Apr 2007
Posts:
151
Plugin Contributions:
0

Re: Weird Code and trying edit old body data but opens erased

Sorry but what is the exact folder these are located in as there is more than one.

```php
Do I need to convert to UTF-8?
If your site IS RUNNING or you have UPGRADED FROM an older version of Zen Cart where your language files are/were set to iso-8859-1, and you don't have any specific need for extended-character multibyte support (for example your store is only in english and only english-speaking customers visit your store), then you may find it best to keep your site in iso-8859-1 (aka "latin1") mode instead of converting to UTF8.

To do this, you'll need to fix BOTH your admin and non-admin files:
Edit your upgraded english.php file to use the old CHARSET and setlocale settings (SEE YOUR OLD english.php FILE CONTENTS).
That is, KEEP the old references to iso-8859-1 INSTEAD of utf-8.
... AND ...Also edit your two configure.php files to set DB_CHARSET to 'latin1' instead of 'utf8'
(add the line if it doesn't exist):
define('DB_CHARSET', 'latin1');

http://www.SullivanVitamins.com

America's Favorite Vitamin Source & Irish Shop

30 Apr 2013, 12:56 AM
#4
gws76 avatar

gws76

Zen Follower

Join Date:
Apr 2007
Posts:
151
Plugin Contributions:
0

Re: Weird Code and trying edit old body data but opens erased

Sorry for the bump but it looks like the admin english.php was causing the problems as the two english.php I opened up in public folders were still iso-8859-1.

http://www.SullivanVitamins.com

America's Favorite Vitamin Source & Irish Shop