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
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Link |
This issue depends upon |
| Attachment | DOXIA-133_doxia.diff [ 28372 ] | |
| Attachment | DOXIA-133_doxia-siterenderer.diff [ 28373 ] |
| Component/s | Module - Docbook Simple [ 12815 ] | |
| Component/s | Module - Xhtml [ 12821 ] | |
| Component/s | Core [ 11998 ] | |
| Patch Submitted | [Yes] | |
| Component/s | Module - Fml [ 12816 ] | |
| Component/s | Module - Xdoc [ 12820 ] |
| Fix Version/s | 1.0-alpha-9 [ 13220 ] |
| Attachment | DOXIA-133_doxia.diff [ 28690 ] |
| Attachment | DOXIA-133_doxia.diff [ 28779 ] |
| Attachment | DOXIA-133_doxia.diff [ 28780 ] |
| Attachment |
|
| Status | Open [ 1 ] | Closed [ 6 ] |
| Assignee | Vincent Siveton [ siveton ] | |
| Resolution | Fixed [ 1 ] |
here are 2 patches to add XML encoding detection for contents that are defined in XML: xdoc, xhtml, docbook, fml