Community
Participate
Working Groups
Currently all source code files in RAP are encoded as ISO-8859-1. The ThemeManager expects all CSS files to be encoded as UTF-8, even the default CSS files like Button.default.css This may lead to exceptions when the default CSS file contains charaters like umlauts etc.
The reason for UTF-8 was that the ThemeManager also reads CSS files that are provided by custom themes. I thought that UTF-8 would be a better default than Latin-1, as Latin-1 can only encode a few Unicode characters. Of course, the problem behind this is that the encoding of CSS files is silently assumed and can't be defined in the theme extension. However, I'd prefer to stay with a default encoding, but we should document this somewhere. Instead of changing the default to Latin-1, I would very much like to change our source encoding to UTF-8, as this is better anyway - I opened bug 335090 for this request.
(In reply to comment #1) > [ ... ] > Instead of changing the default to Latin-1, I would very much like to change our > source encoding to UTF-8, as this is better anyway - I opened bug 335090 for > this request. +1 Having all sources in UTF-8 would not only solve this particular issue but also make life easier in other areas.
Since bug 335090 is fixed, default CSS files are now UTF-8. I added a note to the theming documentation saying that CSS files have to be UTF-8 encoded.