Forums / Setup & design / Euro character in text?

Euro character in text?

Author Message

Vivienne van Velzen

Tuesday 12 August 2003 11:30:42 pm

Anyone know how I enable people to add an euro character in a textfield? If they try it now, it shows up as a '?'. The field in the form is a XML Text field.
TIA,

Vivienne
PS. It actually works in this forum, look: ยค

Alex Jones

Wednesday 13 August 2003 6:37:52 am

You need to ensure that the charcter set for the site supports that character. It is likely that your site is using iso-8859-1 while this site is using iso-8859-15 which supports the euro symbol. You can change your character set by modifying your site.ini, i18n.ini and template.ini - I believe that is all of them.

Alternately you can keep your current character set and create custom tags for each symbol you need to support: http://ez.no/developer/ez_publish_3/documentation/customization/components/datatypes/ezxmltext/custom_tags

Hope this helps,

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Mark Irvine

Friday 07 May 2004 6:39:32 am

Hi,

I'm having problems with the euro symbol also. When I use the OE it replaces the euor with a question mark...

I've updated site.ini, i18n.ini, and template.ini, but still getting question marks... any more ideas?

(using ezpublish v3.3-4 on linux, updating pages through OE on win2k)

[james@web settings]$ grep "Charset" *.ini
i18n.ini:# Charset defines the internal charset for the site,
i18n.ini:# Set HTTPCharset to something if you know that the internal charset is not
i18n.ini:Charset=iso-8859-15
i18n.ini:HTTPCharset=
site.ini:Charset=iso-8859-15
site.ini:ContentXMLCharset=enabled
site.ini:# is converted to OutputCharset before being sent.
site.ini:AllowedCharsets[]
site.ini:AllowedCharsets[]=us-ascii
site.ini:AllowedCharsets[]=utf-8
site.ini:AllowedCharsets[]=iso-8859-1
site.ini:AllowedCharsets[]=iso-8859-15
site.ini:AllowedCharsets[]=cp1252
site.ini:OutputCharset=utf-8
template.ini:[CharsetSettings]
template.ini:DefaultTemplateCharset=iso-8859-15

Thanks,
Mark

Mark Irvine

Friday 07 May 2004 6:56:26 am

How will my locale setting affect this? In site.ini I see:

[RegionalSettings]
# The primary language for your site
Locale=eng-GB

If I look in share/locale, I see:
[james@web locale]$ ls en*
eng-CA.ini eng-GB@euro.ini eng-GB.ini eng-US.ini

Now the eng-GB.ini shows:
[Charset]
# The preferred charset
Preferred=iso-8859-1

And the eng-GB@euro.ini shows:
[james@web locale]$ more eng-GB@euro.ini
#?ini charset="iso-8859-15"?
[RegionalSettings]
LanguageComment=Euro support

[Charset]
Preferred=iso-8859-15

[Currency]
Symbol=&curren;
Name=Euro
ShortName=EUR

So what does all this mean? Do I need to alter my locale settings to display the euro character? How do I do that? (update site.ini? anything else?)

Thanks,
Mark

eZ debug

Timing: Jan 18 2025 19:06:37
Script start
Timing: Jan 18 2025 19:06:37
Module start 'content'
Timing: Jan 18 2025 19:06:38
Module end 'content'
Timing: Jan 18 2025 19:06:38
Script end

Main resources:

Total runtime1.0995 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 587.7031180.8438
Module start 'content' 0.00690.9140 768.5469597.1250
Module end 'content' 0.92090.1785 1,365.6719337.3828
Script end 1.0994  1,703.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3768210.0002
Check MTime0.00150.1325210.0001
Mysql Total
Database connection0.00130.119510.0013
Mysqli_queries1.011291.97461990.0051
Looping result0.00230.20571970.0000
Template Total1.066497.020.5332
Template load0.00240.215420.0012
Template processing1.064196.779320.5320
Template load and register function0.00020.017210.0002
states
state_id_array0.00120.107510.0012
state_identifier_array0.00170.152920.0008
Override
Cache load0.00200.1787630.0000
Sytem overhead
Fetch class attribute can translate value0.00160.144940.0004
Fetch class attribute name0.00190.171250.0004
XML
Image XML parsing0.00110.104140.0003
class_abstraction
Instantiating content class attribute0.00000.001250.0000
General
dbfile0.00410.3710270.0002
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 32
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs