Home
TeamSite
Euro currency in templating
fjvelasco
Hi
I'm working on templating in TeamSite 6.1 and I have a problem with the "euro" simbol "€". I'm writing the datacapture.cfg with encoding="ISO-8859-1", the DCRs have UTF-8 encoding (TS use it by default) and the output pages have ISO-8859-1 encoding (I modified the script iwpt_encoding.ipl to return ISO-8859-1).
I'm using a <item> with a <text> field in the datacapture.cfg.
All other symbols works fine but the "euro" symbol disappears in the output page. In the DCR the "euro" symbol are substitued by € and I tried to apply a regex in Perl but the substitution doesn't work.
How can I solve this problem?
Thanks in advance.
Find more posts tagged with
Comments
Jeremy
Hi,
Try using € instead of €.
HTH.
fjvelasco
Thanks but the users don't know HTML and they write that symbol and all others like "ñ", "ü", etc.
I need another solution. Thanks again.
fjvelasco
Hi to all...
I don't believe that there is nodoby that has users writing euro symbols in the templates. Is it a rare thing?
Thanks in advance.
FJ
Jeremy
Hi,
I just had a play around on a 6.1 installation. Putting a € into a normal text field was spitting out the strange characters you described.
This may not help you, or hopefully may set you on the right road, but if I changed the encoding of the Browser (IE6) from "Western Europe (Windows)" to "Unicode (UTF-8)" it displays the € fine.
However my DCT encoding is UTF-8. I will play a little more and see if I get the same results using the ISO encoding.
Pommes
Hi,
you also could look up the character sign fpr € in the DCR and replace this char with regular expression in the Presentation Template with the correct sign.
fjvelasco
Hola
Ya lo he intentado. No detecta los caracteres y no substituyo adecuadamente. Debe ser que el símbolo del euro es algo extraño o nuevo para el UTF8 que suelen ser dos caracteres seguidos y éste son dos.
Habrá que seguir intentando aunque me extraña que todos los caracteres extraños habituales salgan bien y el del euro no.
Muchas gracias.
FJ
Jeremy
Would probably help all involved if that was in English, unless you would prefer some of us not to help?
fjvelasco
I'm sorry
My message says: regex doesn't work. I'm searching another way.
Thanks.
Migrateduser
HI.
i have done the same.
go through "TechNote 48832: Handling Euro Characters"
Thankx
Rishi Gupta
Interwoven certified teamsite consultant
Satyam computer services limited, India
fjvelasco
Hola
Muchas gracias, estoy revisándolo a ver qué resultados obtengo.
Muchas gracias de nuevo.
FJ
-------------------------------------------------------------------
Hi
Thanks, I'm trying to use it.
Thanks again.
FJ
Migrateduser
Déjeme saber, es él trabaja perfectamente.
Rishi Gupta.
Consultor certificado entretejido de Teamsite
Servicios informáticos de Satyam limitados, la India
Adam Stoller
If AltaVista's Babel Fish Translator (
http://babelfish.altavista.com/babelfish/tr
) is working okay - I believe that was, essentially: "it works perfectly"
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
cmcdieck
Hi,
try the regex in hex form, e.g.
my $euro = '\x{20AC}';
s!$euro!€!gm;
It's machine independent and should work.