[ 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