Jump to content

[SOLVED] Category block - wrong character accent encoding when mouse hover.


Recommended Posts

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

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

×
×
  • Create New...