Category header doesn't show "&" signs but "amp$;

See attached image.

All the "&-signs" are presented correct accept in the category-header, Is there a simple solution. I know I can change everything in the word "and", but I am not seeking for that solution.

Regards Killerweb

9 answers

Profile photo of chavan 100.00 $tone March 27, 2011
Public

Go to Catalog>Attributes>Manage Attributes, then click the “name” attribute code in the first column to open the properties window. Scroll down in the window until you see “Allow HTML-tags on Front-end” and be sure to set the value to “Yes.”

Save your changes and then check your store

#1
Profile photo of thangnn1510 0.00 $tone March 28, 2011
Public

Dear killerweb!

That is caused by your tables in database not in utf8 encoding (catalog_category_entity_varchar). Please change the encoding of table to utf8 by this sql code:

Code:

ALTER TABLE catalog_category_entity_varchar CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;

Regards!

#3
Profile photo of chavan 100.00 $tone April 2, 2011
Public

provided and opened up the shop for you.

Go to this Folder:

app/design/frontend/MYTHEME/template/catalog/category/view.phtml

Replace the code

Code:

<?php echo $_helper->categoryAttribute($_category, $this->htmlEscape($_category->getName()), 'name') ?>

With

Code:

<?php echo $_helper->categoryAttribute($_category, $_category->getName(), 'name') ?>

If you don’t find the view.phtml in this app/design/frontend/default/MYTHEME/template/catalog/category/

check this folder this app/design/frontend/base/default/template/catalog/category/

#6

Please login or Register to Submit Answer

Written By

Comments