Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-alpha-8
-
Fix Version/s: 1.0-alpha-9
-
Component/s: Core, Module - Docbook Simple, Module - Fml, Module - Xdoc, Module - Xhtml, Site Renderer
-
Labels:None
-
Testcase included:yes
-
Patch Submitted:Yes
-
Number of attachments :
Description
Encoding can be specified per file, in the XML header: <?xml version="1.0" encoding="xxx"?>, or defaults to UTF-8
But DefaultSiteRenderer class always read files with inputEncoding: reader = new InputStreamReader( new FileInputStream( fullPathDoc ), context.getInputEncoding() );
When the source file is XML (xdoc, xhtml), should use XmlReader from PLXUTILS-11 to detect the XML stream encoding instead.
Test case included in MSITE-239, site-plugin-test14
Issue Links
- depends upon
-
PLXUTILS-11
MXParser can't handle the encoding declaration in XML declaration
-
- is depended upon by
-
MNG-2932
Encoding chaos
-
- is related to
-
DOXIA-278
Character encoding autodetection fails for APT source files
-
here are 2 patches to add XML encoding detection for contents that are defined in XML: xdoc, xhtml, docbook, fml