Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.1, 2.3
-
Fix Version/s: 2.4
-
Component/s: changes.xml
-
Labels:None
-
Environment:Win XP, JDK 1.6.0_18, Maven 2.2.1
-
Number of attachments :
Description
Add an additional parameter to define the output encoding like in site-plugin.
<outputEncoding></outputEncoding>
If I generate the changes-report by changes:changes-report, I get this in the html output:
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> ...
If I generate the same changes-report by site:site, I get this:
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
Whereas, here I've defined
<outputEncoding>ISO-8859-1</outputEncoding>
and as default in the parent pom
<project.reporting.outputEncoding>ISO-8859-1</project.reporting.outputEncoding>
Encoding during site generation is tricky, as there are many parameters to take into account.
When you run "changes:changes-report" the plugin will use a default skin, whereas when you run "site:site" it will use the skin specified in the site.xml.
The charset that is specified in the html output comes from the skin. The encoding of the pages generated by the Site Plugin is configurable by the parameters that you are already using.
Why do you need an outputEncoding parameter for the Changes Plugin?