ALMAJ Posted June 9, 2014 Share Posted June 9, 2014 (edited) When I hover my mouse on the left category, the category name is displayed with a wrong character encoding...here a pic: Prestashop 1.6.0.6 (default theme) URL Store: http://www.tugabay.com/pt/3-informatica Can please some one help on this one?Thanks Edited June 10, 2014 by ALMAJ (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted June 9, 2014 Share Posted June 9, 2014 can you show contents of file: category-tree-branch.tpl ? (located in module directory in your theme dir) Link to comment Share on other sites More sharing options...
ALMAJ Posted June 9, 2014 Author Share Posted June 9, 2014 can you show contents of file: category-tree-branch.tpl ? (located in module directory in your theme dir) Sure here it is: <li {if isset($last) && $last == 'true'}class="last"{/if}> <a href="{$node.link|escape:'html':'UTF-8'}"{if isset($currentCategoryId) && $node.id == $currentCategoryId} class="selected"{/if} title="{$node.desc|strip_tags|trim|escape:'html':'UTF-8'}"> {$node.name|escape:'html':'UTF-8'} </a> {if $node.children|@count > 0} <ul> {foreach from=$node.children item=child name=categoryTreeBranch} {if $smarty.foreach.categoryTreeBranch.last} {include file="$branche_tpl_path" node=$child last='true'} {else} {include file="$branche_tpl_path" node=$child last='false'} {/if} {/foreach} </ul> {/if} </li> It seems that title already has a UTF-8 encoding... Thanks for your reply. Link to comment Share on other sites More sharing options...
vekia Posted June 9, 2014 Share Posted June 9, 2014 can you change this: {$node.desc|strip_tags|trim|escape:'html':'UTF-8'} to this: {$node.desc|strip_tags} will see what's going on then 1 Link to comment Share on other sites More sharing options...
ALMAJ Posted June 9, 2014 Author Share Posted June 9, 2014 can you change this: {$node.desc|strip_tags|trim|escape:'html':'UTF-8'} to this: {$node.desc|strip_tags} will see what's going on then It worked! So, removing the UTF-8 encoding, accented characters will be displayed ok? why? Thanks for your help Link to comment Share on other sites More sharing options...
vekia Posted June 9, 2014 Share Posted June 9, 2014 i think that problem is related to escaping, string is escaped, so it displays some artefacts 1 Link to comment Share on other sites More sharing options...
ALMAJ Posted June 10, 2014 Author Share Posted June 10, 2014 By the way, it is a good idea to open a bug report on this? Link to comment Share on other sites More sharing options...
vekia Posted June 11, 2014 Share Posted June 11, 2014 i don't think so, this kind of escaping is good idea for cyrylica etc. Link to comment Share on other sites More sharing options...
Recommended Posts