This is just one of the reasons why we switched to UTF-8 by default in Jahia 5.

Regards,
 Serge...

[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] <mailto:[EMAIL PROTECTED]>>
Date: 19-Jul-2006 10:38
Subject: euro symbol
To: [EMAIL PROTECTED] <mailto:[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

Reply via email to