Thomas Champagne created MSQL-79:
------------------------------------
Summary: UTF-8 Files with BOM mark are not handled correctly
Key: MSQL-79
URL: https://jira.codehaus.org/browse/MSQL-79
Project: Maven 2.x SQL Plugin
Issue Type: Bug
Affects Versions: 1.5, 1.4, 1.3, 1.2, 1.1, 1.0
Reporter: Thomas Champagne
Attachments: MSQL-33.zip
If a UTF-8 file does include the BOM, it will always fail with "Incorrect
syntax near ?" where ? is the first character of the file. UTF-8 files without
the BOM work fine.
The <encoding> or <project.build.sourceEncoding> parameters are correctly
defined to UTF-8.
In Java, you have to consume manually the UTF8 BOM if present. This behaviour
is documented in the Java bug database,
[here|http://bugs.sun.com/view_bug.do?bug_id=4508058] and
[here|http://bugs.sun.com/view_bug.do?bug_id=6378911]. There will be no fix for
now because it will break existing tools like javadoc ou xml parsers. The
Apache IO Commons provides some tools to handle this situation.
Take a look at this solution : [Handle UTF8 file with
BOM|http://www.rgagnon.com/javadetails/java-handle-utf8-file-with-bom.html]
There is an issue with the same problem but it is closed : MSQL-33.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.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