You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kohsuke Kawaguchi (JIRA)" <ji...@codehaus.org> on 2007/04/28 20:46:26 UTC
[jira] Created: (MIDEA-89) iml file generation done in the platform
encoding, not UTF-8
iml file generation done in the platform encoding, not UTF-8
------------------------------------------------------------
Key: MIDEA-89
URL: http://jira.codehaus.org/browse/MIDEA-89
Project: Maven 2.x Idea Plugin
Issue Type: Bug
Affects Versions: 2.0
Reporter: Kohsuke Kawaguchi
When *.iml files are generated, characters are apparently encoded in the platform default encoding. This is inconsistent with the XML declaration placed in these files, which say UTF-8. So the resulting project files don't load correctly when some of the pathnames contain non-ASCII characters.
I bet somewhere in the code you are doing just "new OutputStreamWriter(new FileOutputStream(...))" kind of things. Please change the code to use UTF-8.
--
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: (MIDEA-89) iml file generation done in the platform
encoding, not UTF-8
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MIDEA-89?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg closed MIDEA-89.
--------------------------------
Assignee: Dennis Lundberg
Resolution: Fixed
Fix Version/s: 2.2
A new SNAPSHOT has been deployed with a fix for this. Please verify that it works.
> iml file generation done in the platform encoding, not UTF-8
> ------------------------------------------------------------
>
> Key: MIDEA-89
> URL: http://jira.codehaus.org/browse/MIDEA-89
> Project: Maven 2.x IDEA Plugin
> Issue Type: Bug
> Affects Versions: 2.0
> Reporter: Kohsuke Kawaguchi
> Assignee: Dennis Lundberg
> Fix For: 2.2
>
>
> When *.iml files are generated, characters are apparently encoded in the platform default encoding. This is inconsistent with the XML declaration placed in these files, which say UTF-8. So the resulting project files don't load correctly when some of the pathnames contain non-ASCII characters.
> I bet somewhere in the code you are doing just "new OutputStreamWriter(new FileOutputStream(...))" kind of things. Please change the code to use UTF-8.
--
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: (MIDEA-89) iml file generation done in the
platform encoding, not UTF-8
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MIDEA-89?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_102284 ]
Dennis Lundberg commented on MIDEA-89:
--------------------------------------
I found this code in the class IdeaXmlWriter, that is used to write all files for this plugin.
{code}
new FileWriter( file )
{code}
Would it be correct to change this to:
{code}
new OutputStreamWriter( new FileOutputStream( file ), "UTF-8" )
{code}
Can you provide a sample pom.xml file that I can use for testing?
> iml file generation done in the platform encoding, not UTF-8
> ------------------------------------------------------------
>
> Key: MIDEA-89
> URL: http://jira.codehaus.org/browse/MIDEA-89
> Project: Maven 2.x IDEA Plugin
> Issue Type: Bug
> Affects Versions: 2.0
> Reporter: Kohsuke Kawaguchi
>
> When *.iml files are generated, characters are apparently encoded in the platform default encoding. This is inconsistent with the XML declaration placed in these files, which say UTF-8. So the resulting project files don't load correctly when some of the pathnames contain non-ASCII characters.
> I bet somewhere in the code you are doing just "new OutputStreamWriter(new FileOutputStream(...))" kind of things. Please change the code to use UTF-8.
--
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: (MIDEA-89) iml file generation done in the
platform encoding, not UTF-8
Posted by "Kohsuke Kawaguchi (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MIDEA-89?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_117104 ]
Kohsuke Kawaguchi commented on MIDEA-89:
----------------------------------------
Yes. That's it. Thanks!
> iml file generation done in the platform encoding, not UTF-8
> ------------------------------------------------------------
>
> Key: MIDEA-89
> URL: http://jira.codehaus.org/browse/MIDEA-89
> Project: Maven 2.x IDEA Plugin
> Issue Type: Bug
> Affects Versions: 2.0
> Reporter: Kohsuke Kawaguchi
>
> When *.iml files are generated, characters are apparently encoded in the platform default encoding. This is inconsistent with the XML declaration placed in these files, which say UTF-8. So the resulting project files don't load correctly when some of the pathnames contain non-ASCII characters.
> I bet somewhere in the code you are doing just "new OutputStreamWriter(new FileOutputStream(...))" kind of things. Please change the code to use UTF-8.
--
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