Zen Cart Logo
Forums / Upgrading to 1.5.x / Strange character in product descriptions

Strange character in product descriptions

Views: 2,110

Results 1 to 9 of 9
15 Jan 2012, 9:55 PM
#1
webbouk avatar

webbouk

New Zenner

Join Date:
Dec 2009
Posts:
33
Plugin Contributions:
0

Strange character in product descriptions

Hi,
I'm in the process of upgrading from v138 to v150 and so far it has gone reasonably smoothly, however I have aquired the following character in some of my product descriptions: Â

You can see it here: http://www.toughlocks.co.uk/v150/index.php?main_page=index&cPath=1 within the description (this site is functional but not our working store)

As far as I can see the charset in the language files are the same as the previous install

It is a Windows server, based in the UK, and the upgrade has been done via ftp. Template is a modified Cherry Zen

Any help will be appreciated

Thanks

16 Jan 2012, 8:21 PM
#2
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,872
Plugin Contributions:
7

Re: Strange character in product descriptions

Well they vanish when you view the page as utf-8 encoded.

1.5 is supposed to serve utf-8 pages so I image you are using a english.php in your template override folder which is still defining the charset as iso 8859 as per 1.39 default - you must compare it with a 1.5 vanilla version for starters, as with all the other template overrides to mirror the structural changes.

Nonetheless, I don't really see what difference it would make as you don't use any accented characters.

16 Jan 2012, 9:20 PM
#3
webbouk avatar

webbouk

New Zenner

Join Date:
Dec 2009
Posts:
33
Plugin Contributions:
0

Re: Strange character in product descriptions

Thanks Torvista, you pointed me in the right direction

In the Cherry_Zen template there is an english.php file in the folder:
/storename/includes/languages/cherry_zen/

renaming the file to english.bak effectively took it away from being an override and all is reading well again now :clap:

Many thanks

16 Jan 2012, 9:42 PM
#4
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Strange character in product descriptions

webbouk:

In the Cherry_Zen template there is an english.php file in the folder:
/storename/includes/languages/cherry_zen/

renaming the file to english.bak effectively took it away from being an override and all is reading well again now

Hmmm... Wouldn't you also lose all your UK customisation such as date formats, etc?

16 Jan 2012, 10:24 PM
#5
webbouk avatar

webbouk

New Zenner

Join Date:
Dec 2009
Posts:
33
Plugin Contributions:
0

Re: Strange character in product descriptions

This is strange - for a minute it seemed to have fixed the problem however once the page refreshed a couple of times the problem character is still there.

If I go into the store admin and edit a category, by closing up the whitespace between two words where the  is displaying onscreen and then press the space bar on the keyboard to add a space, the  disapears

Also, I don't know if there is supposed to be a wysiwyg editor in v150 but in mine it just displays as html

16 Jan 2012, 11:38 PM
#6
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Strange character in product descriptions

Also, I don't know if there is supposed to be a wysiwyg editor in v150 but in mine it just displays as html

The wysiwyg editor was removed from 1.5, and is now available as an add-on. This is the recommended one:

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1626

19 Jan 2012, 7:38 AM
#7
webbouk avatar

webbouk

New Zenner

Join Date:
Dec 2009
Posts:
33
Plugin Contributions:
0

Re: Strange character in product descriptions

I've finally sorted it after finding this link referenced in another thread:
https://www.zen-cart.com/tutorials/index.php?article=414

onwards and upwards .... :)

27 Feb 2012, 12:00 PM
#8
zl_conquistador avatar

zl_conquistador

New Zenner

Join Date:
Nov 2010
Location:
Ohio
Posts:
31
Plugin Contributions:
0

Re: Strange character in product descriptions

I have edited the english.php, that was straight forward for me. Now the configure.php requires this:

To do this, you'll need to edit your upgraded english.php file to use the old CHARSET and setlocale settings, as well as edit your configure.php file to set DB_CHARSET to 'latin1' instead of 'utf8'.Can someone tell me exactly where in the configure.php and how to add this?

27 Feb 2012, 12:33 PM
#9
zl_conquistador avatar

zl_conquistador

New Zenner

Join Date:
Nov 2010
Location:
Ohio
Posts:
31
Plugin Contributions:
0

Re: Strange character in product descriptions

Forget it, I didn't need to edit the configure.php just didn't do the right english.php