You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Bruno Marti (JIRA)" <ji...@codehaus.org> on 2010/02/10 09:25:55 UTC
[jira] Created: (MCHANGES-197) Parameter for output encoding
Parameter for output encoding
-----------------------------
Key: MCHANGES-197
URL: http://jira.codehaus.org/browse/MCHANGES-197
Project: Maven 2.x Changes Plugin
Issue Type: New Feature
Components: changes-report
Affects Versions: 2.3, 2.1
Environment: Win XP, JDK 1.6.0_18, Maven 2.2.1
Reporter: Bruno Marti
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:
{code:xml}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
...
{code}
If I generate the same changes-report by site:site, I get this:
{code:xml}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
{code}
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>_
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (MCHANGES-197) Add parameter for output encoding
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCHANGES-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg closed MCHANGES-197.
------------------------------------
Resolution: Fixed
Fixed in [r1062482|http://svn.apache.org/viewvc?view=revision&revision=1062482].
New 2.4-SNAPSHOT deployed. Please test.
The new parameter is called "outputEncoding". It will default to ${project.reporting.outputEncoding} as per https://cwiki.apache.org/confluence/display/MAVENOLD/Reporting+Encoding+Configuration
> Add parameter for output encoding
> ---------------------------------
>
> Key: MCHANGES-197
> URL: http://jira.codehaus.org/browse/MCHANGES-197
> Project: Maven 2.x Changes Plugin
> Issue Type: New Feature
> Components: changes.xml
> Affects Versions: 2.1, 2.3
> Environment: Win XP, JDK 1.6.0_18, Maven 2.2.1
> Reporter: Bruno Marti
> Assignee: Dennis Lundberg
> Fix For: 2.4
>
> Attachments: changes_encoding.zip, screenshot-1.jpg, screenshot-2.jpg
>
>
> 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:
> {code:xml}
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
> ...
> {code}
> If I generate the same changes-report by site:site, I get this:
> {code:xml}
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
> {code}
> 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>_
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MCHANGES-197) Add parameter for output encoding
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCHANGES-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg updated MCHANGES-197:
-------------------------------------
Fix Version/s: 2.4
Assignee: Dennis Lundberg
Summary: Add parameter for output encoding (was: Parameter for output encoding)
> Add parameter for output encoding
> ---------------------------------
>
> Key: MCHANGES-197
> URL: http://jira.codehaus.org/browse/MCHANGES-197
> Project: Maven 2.x Changes Plugin
> Issue Type: New Feature
> Components: changes.xml
> Affects Versions: 2.1, 2.3
> Environment: Win XP, JDK 1.6.0_18, Maven 2.2.1
> Reporter: Bruno Marti
> Assignee: Dennis Lundberg
> Fix For: 2.4
>
> Attachments: changes_encoding.zip, screenshot-1.jpg, screenshot-2.jpg
>
>
> 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:
> {code:xml}
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
> ...
> {code}
> If I generate the same changes-report by site:site, I get this:
> {code:xml}
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
> {code}
> 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>_
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MCHANGES-197) Parameter for output encoding
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCHANGES-197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=209689#action_209689 ]
Dennis Lundberg commented on MCHANGES-197:
------------------------------------------
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?
> Parameter for output encoding
> -----------------------------
>
> Key: MCHANGES-197
> URL: http://jira.codehaus.org/browse/MCHANGES-197
> Project: Maven 2.x Changes Plugin
> Issue Type: New Feature
> Components: changes-report
> Affects Versions: 2.1, 2.3
> Environment: Win XP, JDK 1.6.0_18, Maven 2.2.1
> Reporter: Bruno Marti
>
> 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:
> {code:xml}
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
> ...
> {code}
> If I generate the same changes-report by site:site, I get this:
> {code:xml}
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
> {code}
> 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>_
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MCHANGES-197) Parameter for output encoding
Posted by "Bruno Marti (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCHANGES-197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=209711#action_209711 ]
Bruno Marti commented on MCHANGES-197:
--------------------------------------
It's for german language.
The report generated from site:site does show the characters "äöü", but with changes:changes-report not. Here there are some undefined characters.
Or do I misunderstand the encoding and charset attributes?
> Parameter for output encoding
> -----------------------------
>
> Key: MCHANGES-197
> URL: http://jira.codehaus.org/browse/MCHANGES-197
> Project: Maven 2.x Changes Plugin
> Issue Type: New Feature
> Components: changes-report
> Affects Versions: 2.1, 2.3
> Environment: Win XP, JDK 1.6.0_18, Maven 2.2.1
> Reporter: Bruno Marti
>
> 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:
> {code:xml}
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
> ...
> {code}
> If I generate the same changes-report by site:site, I get this:
> {code:xml}
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
> {code}
> 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>_
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MCHANGES-197) Parameter for output encoding
Posted by "Bruno Marti (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCHANGES-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bruno Marti updated MCHANGES-197:
---------------------------------
Attachment: screenshot-1.jpg
correct characters
> Parameter for output encoding
> -----------------------------
>
> Key: MCHANGES-197
> URL: http://jira.codehaus.org/browse/MCHANGES-197
> Project: Maven 2.x Changes Plugin
> Issue Type: New Feature
> Components: changes-report
> Affects Versions: 2.1, 2.3
> Environment: Win XP, JDK 1.6.0_18, Maven 2.2.1
> Reporter: Bruno Marti
> Attachments: changes_encoding.zip, screenshot-1.jpg, screenshot-2.jpg
>
>
> 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:
> {code:xml}
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
> ...
> {code}
> If I generate the same changes-report by site:site, I get this:
> {code:xml}
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
> {code}
> 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>_
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MCHANGES-197) Parameter for output encoding
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCHANGES-197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=209841#action_209841 ]
Dennis Lundberg commented on MCHANGES-197:
------------------------------------------
Can you put together a little test project that can be used to highlight the problems you are having?
> Parameter for output encoding
> -----------------------------
>
> Key: MCHANGES-197
> URL: http://jira.codehaus.org/browse/MCHANGES-197
> Project: Maven 2.x Changes Plugin
> Issue Type: New Feature
> Components: changes-report
> Affects Versions: 2.1, 2.3
> Environment: Win XP, JDK 1.6.0_18, Maven 2.2.1
> Reporter: Bruno Marti
>
> 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:
> {code:xml}
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
> ...
> {code}
> If I generate the same changes-report by site:site, I get this:
> {code:xml}
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
> {code}
> 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>_
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MCHANGES-197) Parameter for output encoding
Posted by "Bruno Marti (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCHANGES-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bruno Marti updated MCHANGES-197:
---------------------------------
Attachment: changes_encoding.zip
a little demo project.
Usage:
- mvn clean site
-> changes-report is correct, especially german characters äöü or the publishing date
- mvn clean changes:changes-report
-> publishing date an special characters aren't rendered
> Parameter for output encoding
> -----------------------------
>
> Key: MCHANGES-197
> URL: http://jira.codehaus.org/browse/MCHANGES-197
> Project: Maven 2.x Changes Plugin
> Issue Type: New Feature
> Components: changes-report
> Affects Versions: 2.1, 2.3
> Environment: Win XP, JDK 1.6.0_18, Maven 2.2.1
> Reporter: Bruno Marti
> Attachments: changes_encoding.zip
>
>
> 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:
> {code:xml}
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
> ...
> {code}
> If I generate the same changes-report by site:site, I get this:
> {code:xml}
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
> {code}
> 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>_
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MCHANGES-197) Add parameter for output encoding
Posted by "Bruno Marti (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCHANGES-197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=252755#action_252755 ]
Bruno Marti commented on MCHANGES-197:
--------------------------------------
I've tested. Fix works fine.
Thanks
Looking forward to next release.
> Add parameter for output encoding
> ---------------------------------
>
> Key: MCHANGES-197
> URL: http://jira.codehaus.org/browse/MCHANGES-197
> Project: Maven 2.x Changes Plugin
> Issue Type: New Feature
> Components: changes.xml
> Affects Versions: 2.1, 2.3
> Environment: Win XP, JDK 1.6.0_18, Maven 2.2.1
> Reporter: Bruno Marti
> Assignee: Dennis Lundberg
> Fix For: 2.4
>
> Attachments: changes_encoding.zip, screenshot-1.jpg, screenshot-2.jpg
>
>
> 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:
> {code:xml}
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
> ...
> {code}
> If I generate the same changes-report by site:site, I get this:
> {code:xml}
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
> {code}
> 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>_
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MCHANGES-197) Parameter for output encoding
Posted by "Bruno Marti (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCHANGES-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bruno Marti updated MCHANGES-197:
---------------------------------
Attachment: screenshot-2.jpg
incorrect
> Parameter for output encoding
> -----------------------------
>
> Key: MCHANGES-197
> URL: http://jira.codehaus.org/browse/MCHANGES-197
> Project: Maven 2.x Changes Plugin
> Issue Type: New Feature
> Components: changes-report
> Affects Versions: 2.1, 2.3
> Environment: Win XP, JDK 1.6.0_18, Maven 2.2.1
> Reporter: Bruno Marti
> Attachments: changes_encoding.zip, screenshot-1.jpg, screenshot-2.jpg
>
>
> 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:
> {code:xml}
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
> ...
> {code}
> If I generate the same changes-report by site:site, I get this:
> {code:xml}
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
> {code}
> 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>_
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira