Hi everybody, just upgraded our development server to 4.05. A test of the HTMLArea Editor integration shows some problems with the language support of the HTMLArea editor integration and mozilla based browsers.
The situation: Have a two language site with languages german and english. If I popup the editor dialog for an arbitrary text box and edit the content Field, the HTMLArea editor is shown if I choose the english language but not if I switch to the german language.
In the Javascript console of the mozilla browser you can see an error message about "illegal characters" in the language special JS files of the HTMLArea editor (de.js for the editor and the plugins) if I switch to the german language as author.
---- typical error message in javascript console ----------------- Error: illegal character Source File: http://iai-webuis2.iai.fzk.de:9080/jahia/jsp/jahia/htmleditors/htmlarea-3.0-rc1/lang/de.js Line: 1, Column: 1 Source Code: // I18N constants ------ see the weird characters at the beginning of the above line ---
If I look at the corresponding javascript files, the content of en.js is in ISO-8859 encoding but the content of de.js is in UTF-8 encoding. A comment in de.js states that it's encoding should be ISO-8859 too. The mozilla browser assumes that all files loaded from the Editor popup HTML should be in default encoding (in my case ISO-8859) because the HTML itself doesn't set any encoding.
So, my question is:
An easy fix looks like changing the default encoding of all de.js language files under the HTMLArea directory to ISO-8859, but is this the right solution? Or should the HTML be modified to supply UTF-8 encoding for languages where the langauge files are encoded in UTF-8?
I forget to mention that IE doesn't have any problems with this at all.
Thanks for looking at this and have a nice day Clemens
