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

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 31 2025 06:25:45
Script start
Timing: Jan 31 2025 06:25:45
Module start 'layout'
Timing: Jan 31 2025 06:25:45
Module start 'content'
Timing: Jan 31 2025 06:25:45
Module end 'content'
Timing: Jan 31 2025 06:25:45
Script end

Main resources:

Total runtime0.0173 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 588.1250151.2109
Module start 'layout' 0.00700.0028 739.335936.6484
Module start 'content' 0.00990.0057 775.984494.1250
Module end 'content' 0.01560.0016 870.109433.9922
Script end 0.0172  904.1016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002715.7834140.0002
Check MTime0.00127.1243140.0001
Mysql Total
Database connection0.00116.426710.0011
Mysqli_queries0.002614.844030.0009
Looping result0.00000.081510.0000
Template Total0.00127.110.0012
Template load0.00095.474810.0009
Template processing0.00031.540410.0003
Override
Cache load0.00063.731410.0006
General
dbfile0.00126.942080.0001
String conversion0.00000.045640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs