Details
-
Bug
-
Resolution: Fixed
-
Major
-
1.4.1, 1.5 M2, 1.5 RC1, 1.5 RC2, 1.5, 1.6 M1, 1.4.2, 1.5.1, 1.6 M2
-
None
-
Tested on XWiki 1.4.1, tomcat 6, mysql 5
-
skin encoding length patch
-
Description
Response from the SkinAction does not take care of xwiki.encoding and may therefore differ from the current encoding of xwiki document. This is particularly an issue with Javascript scripts, and moreover when these scripts make use of $msg.get() that return accentuated chars.
In my case, the xwiki, db, tomcat, system, and al, are set to UTF-8 but javascript were still served as ISO-8859-1. Do not ask me from where it get it, I do not know, but it does.
Additionally, renderFileFromObjectField does not calculate byte length taking care of the xwiki encoding, which could lead to similar issues as XWIKI-1321