CMS MADE SIMPLE FORGE

TruetypeText

 

[#7431] html non ascii characters fails in text wheter ther are or not replaced by html entities

avatar
Created By: Olivier LEVILLAIN (leolivier)
Date Submitted: Sat Jan 07 10:58:52 -0500 2012

Assigned To:
Version: v2.2
CMSMS Version: 1.10.2
Severity: Critical
Resolution: Works For Me
State: Open
Summary:
html non ascii characters fails in text wheter ther are or not replaced by html entities
Detailed Description:
Latest version of TTT (2.2)
For instance, the "é" of vidéo shows as a blank square and if replaced with
vidéo, it shows as vidéo

Furthermore it also shows some <em></em> tags around the text...


History

Comments
avatar
Date: 2012-01-07 16:36
Posted By: Jonathan Schmid (Foaly*)

i guess that's because your font can't display an é. I've tested successfully
with this font: http://www.dafont.com/riesling.font?text=%E9
      
avatar
Date: 2012-01-08 06:23
Posted By: Olivier LEVILLAIN (leolivier)

You're right for the font, I changed it and now it works with an "é" BUT it
still does not work with html entities!
For instance vid&eacute;o does show as vid&eacute;o and not as vidéo. This can
be a problem in many cases

AND I still have the problem about the <em> tags around my text.
I inserted something like:
{TruetypeText style="ghost" text="Mes vid&eacute;os"}
(with the satndard ghost style not modified) and what is shown is:
<em>Mes vid&eacute;o</em>



      
avatar
Date: 2012-01-08 10:20
Posted By: Jonathan Schmid (Foaly*)

the module outputs exactly what you pass. in order to decode entities you can
use {TruetypeText style="ghost" text="Mes vid&eacute;os"|html_entity_decode}. Or
is there a situation where this doesn't work?

I can't reproduce the problem with the em-tag...
      
Updates

Updated: 2012-01-08 10:20
state: Closed => Open

Updated: 2012-01-07 16:36
version_id: -1 => 29409
resolution_id: => 11
state: Open => Closed