Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: native2ascii
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
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.
patch for this issue + some unit tests. Patch also fixes:
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.