[
http://jira.codehaus.org/browse/MOJO-1606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=246321#action_246321
]
Juan Pablo Santos RodrÃguez edited comment on MOJO-1606 at 12/3/10 1:50 PM:
----------------------------------------------------------------------------
patch for this issue + some unit tests. Patch also fixes:
- http://jira.codehaus.org/browse/MOJO-1166
- http://jira.codehaus.org/browse/MOJO-1402
- http://jira.codehaus.org/browse/MOJO-1546
also: according to java.util.Properties javadocs, properties files are readed
assuming they are on iso-8859-1, so attached patch also makes encoding default
value 8859_1, as it seems to be a reasonable default.
was (Author: juanpablo.santos):
patch for this issue + some unti tests. Patch also fixes:
- http://jira.codehaus.org/browse/MOJO-1166
- http://jira.codehaus.org/browse/MOJO-1402
- http://jira.codehaus.org/browse/MOJO-1546
also: according to java.util.Properties javadocs, properties files are readed
assuming they are on iso-8859-1, so attached patch also makes encoding default
value 8859_1, as it seems to be a reasonable default.
> remove UTF-8 BOM Header from native2ascii files
> -----------------------------------------------
>
> Key: MOJO-1606
> URL: http://jira.codehaus.org/browse/MOJO-1606
> Project: Mojo
> Issue Type: New Feature
> Components: native2ascii
> Reporter: Juan Pablo Santos RodrÃguez
> Attachments: patch_MOJOs_1166_1402_1546_1606.txt
>
>
> Some windows programs, like Notepad, insert a BOM header when creating/saving
> UTF-8 files. It would be very nice to have an option to enable removing of
> this header, as it breaks the properties files once they've been converted to
> ascii files (a \u00ef\u00bb\u00bf text is placed at the beginning of the
> file).
> Suggested solution: enable a new mojo parameter to control if this header
> should be stripped, and make the mojo act according to it.
> Attached patch following shortly.
--
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
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email