Re: Fwd: euro symbol

"tom *" <[email protected]>
Newsgroups gmane.comp.cms.jahia.devel
Message-ID <[email protected]>
Ok thanks a lot!

The encoding is indeed latin1,

I modified the I18n classfile, so this becomes the escape rule:
*w1252ToISO.put(new Character('\u0080'), "&euro;");*

best regards,
Tom

On 04/08/06, [email protected] <[email protected]> wrote:
>
>
> Hello Tom,
>
> which response character encoding do you use?
> (Check the jahia.properties files for the setting
> defaultResponseBodyEncoding)
>
>
> I have seen the following piece of code in the *BigText_Field* class
>
>             *if* ("ISO-8859-1".equalsIgnoreCase(jParams.settings().
>
> getDefaultResponseBodyEncoding())) {
>                 // This code is used to transform submissions that might
> contain
>                 // Windows 1252 characters (happens mostly when
> copy-pasting
>                 // from Word documents) to ISO-8859-1 equivalents. Note
> that
>                 // some of these conversions are actually LONGER than the
>                 // original. *For example the Euro character gets changed
> to*
> *                // "Euro" string*. This conversion is not necessary for
> UTF-8
>                 // because copy-paste does the conversion automatically in
> that
>                 // case.
>                 fieldValue = I18n.*windows1252ToISO*(fieldValue);
>             }
>
> And if you check the code of the *I18n* class you will find the following
> line:
> *public* *class* I18n {
>
>     *static* Map *w1252ToISO*;
>     *static* {
>         *w1252ToISO* = *new* HashMap();
>         *w1252ToISO**.put(**new** Character(**'\u0080'**), **"Euro"**);*
>         *w1252ToISO*.put(*new* Character('\u0082'), ",");
>         *w1252ToISO*.put(*new* Character('\u0083'), "f");
>         *w1252ToISO*.put(*new* Character('\u0085'), "...");
>
>
> It means, that if you are using the 'ISO-8859-1' response character
> encoding, which is the default one in Jahia, you will get your '€' character
> (unicode \u0080) replaced with the text 'Euro'.
>
> Hope this helps.
>
> Kind regards.
> Sergiy.
>
>
>
>    *"tom *" <[email protected]>*
>
> 04.08.2006 13:25   Please respond to
> <[email protected]>
>
>    To
> [email protected]  cc
>   Subject
> Fwd: euro symbol
>
>
>
>
> I'm still having the same issue here.
>
> Anyone tried to alter tidy in a way that characters get escaped
> differently?
>
> Regards,
>
> Tom
>
>
>
> From: *tom ** <*[email protected]* <[email protected]>>
> Date: 19-Jul-2006 10:38
> Subject: euro symbol
> To: *[email protected]* <[email protected]>
>
>
> Hi all,
>
> when you put a euro symbol in the htmleditor ( € ) for bigtext, it gets
> converted to "Euro" (spelled out).
>
> When you put &euro; in the source, it displays as a symbol, but next time
> you open the editor, and push the ok button, it gets converted to letters
> again.
>
> Does anybody know how I can configure tidy or htmlarea so that € gets
> escaped as "&euro;" instead of "Euro" ?
>
> Regards,
>
> Tom
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.