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