Details
-
Bug
-
Resolution: Fixed
-
Major
-
0.9.840
-
None
-
Xwiki running with unicode
-
unicode truncate utf-8 content length
-
Description
Utils.parseTemplate sets the content length to the string length rather than the number of bytes. This ends up truncating the returned data when using a multi-byte encoding scheme such as utf-8. The content length should instead be set to the number of bytes: content.getBytes().length
Attachments
Issue Links
- relates to
-
XWIKI-1321 Content-length computed using the platform encoding, instead of the configured XWiki encoding
- Closed