ZenphotoCMS Forum
HTML case fraction not rendered corretcly - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: HTML case fraction not rendered corretcly (/thread-12203.html)



HTML case fraction not rendered corretcly - tw2003 - 2015-04-13

I have a problem with HTML case fraction. Normally I would expect "&fract12;" to render ½. However it does not. I'm using tinyMCE editor where it displays correct. On the website itself it does not. The Theme (paradigm) uses printImageDesc() to display the text.
Example: http://paledog.de/Automobile/vintage/1930-bentley-6-litre-speed-six-tourer_rear.jpg.html

I think the problem is that i use the source code option to edit the text. In some Image Titles it works without a problem.




HTML case fraction not rendered corretcly - acrylian - 2015-04-13

TinyMCE does already encode characters itself. Try entering it as the actual character if you haven't.




HTML case fraction not rendered corretcly - tw2003 - 2015-04-13

That's what I originally did. Just tried to overwrite, but it keeps messing it up. I know it's not that common, but in my case I really need it ;-)




HTML case fraction not rendered corretcly - acrylian - 2015-04-13

Have you tried to add the fraction code in TinyMCE's source view?

Edit: I can reproduce that. Seems some double encoding. Quick fix change the theme to use echo getImageDesc() instead. print function do html encoding generally indeed but not sure why this happens with these chars.




HTML case fraction not rendered corretcly - tw2003 - 2015-04-13

Changed it. Works! Many thanks for the quick support. Going to contact the theme developer to fix it for his next release of his theme ;-)