You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Emmanuel Bourg (JIRA)" <ji...@apache.org> on 2007/04/10 17:17:32 UTC

[jira] Updated: (CONFIGURATION-175) Support Byte Order Marks

     [ https://issues.apache.org/jira/browse/CONFIGURATION-175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg updated CONFIGURATION-175:
-----------------------------------------

    Summary: Support Byte Order Marks  (was: [configuration] Support Byte Order Marks)

> Support Byte Order Marks
> ------------------------
>
>                 Key: CONFIGURATION-175
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-175
>             Project: Commons Configuration
>          Issue Type: Improvement
>    Affects Versions: Nightly Builds
>         Environment: Operating System: All
> Platform: All
>            Reporter: Emmanuel Bourg
>            Priority: Minor
>             Fix For: 1.5
>
>
> We should support byte order marks to detect automatically unicode files and
> parse them with the appropriate encoding. Here is a description of BOMs:
> http://en.wikipedia.org/wiki/Byte_Order_Mark
> I suggest the following changes:
> - add a setUseByteOrderMark() method in FileConfiguration to specify if the BOM
> should be added when the file is saved
> - the useByteOrderMark flag is ignored if the encoding has no corresponding BOM
> - on loading the file, look for a BOM at the beginning of the file and set the
> useByteOrderMark flag to true and switch to the corresponding encoding. The flag
> is set to false by default

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org