Add Special Chars to ezdhtml

Author Message

Philip K.

Tuesday 18 July 2006 1:23:20 am

Hello.

I tried to add a character to the special chars table. In the insercharacter.tpl (extension/ezdhtml/design/standard/templates/ezdhtml/) I added the following:

The line where the html-codes are defined:
var specialChars = ["¡","¢","£","¤","¥" .... ]

I added:
"λ"

When I want to insert this char, it will be changed to "?" after saving the template. Is there another location where I have to define this?

Thank you for your help.

Linux is like a wigwam; no windows, now gates, and apache inside!

Kirill Subbotin

Tuesday 18 July 2006 1:30:51 am

This is because this char is not compatible with your codepage. If you try Unicode, for example, it will be ok. Otherwise you can insert it only to <literal> field.

But we are going to change this in eZp 3.9 and make it possible to use foreign characters.

Philip K.

Tuesday 18 July 2006 1:56:47 am

I tried it with "Insert literal". But it's the same. When I put the sign in it, it will be channged to ? and when I put in the html-code I will the the html code and not the sign I want to use.

Is there no other way?

Linux is like a wigwam; no windows, now gates, and apache inside!

Kristof Coomans

Tuesday 18 July 2006 3:07:18 am

Also see this thread: http://ez.no/community/forum/setup_design/tm_trade_mark_character_online_editor

Currently the only way is to use the charset UTF8, which I would recommend to start with for any new site.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 11:25:23
Script start
Timing: Jan 18 2025 11:25:23
Module start 'layout'
Timing: Jan 18 2025 11:25:23
Module start 'content'
Timing: Jan 18 2025 11:25:24
Module end 'content'
Timing: Jan 18 2025 11:25:24
Script end

Main resources:

Total runtime0.9219 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.3516152.6250
Module start 'layout' 0.00510.0038 741.976639.4453
Module start 'content' 0.00890.9108 781.4219584.9688
Module end 'content' 0.91980.0021 1,366.390612.1641
Script end 0.9219  1,378.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3677160.0002
Check MTime0.00150.1611160.0001
Mysql Total
Database connection0.00070.074110.0007
Mysqli_queries0.868394.1847620.0140
Looping result0.00060.0672600.0000
Template Total0.887996.320.4440
Template load0.00270.289720.0013
Template processing0.885296.022720.4426
Template load and register function0.00010.011110.0001
states
state_id_array0.00090.095610.0009
state_identifier_array0.00200.215720.0010
Override
Cache load0.00220.2406200.0001
Sytem overhead
Fetch class attribute can translate value0.00080.081730.0003
Fetch class attribute name0.00160.172160.0003
XML
Image XML parsing0.00120.126030.0004
class_abstraction
Instantiating content class attribute0.00000.001670.0000
General
dbfile0.00100.1065220.0000
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs