Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable XML mapping file to identify and ignore Byte Order Mark (BOM) #30

Open
tmcsys opened this issue Feb 15, 2024 · 0 comments
Open

Comments

@tmcsys
Copy link

tmcsys commented Feb 15, 2024

I use the 2.1.0 release of beanio to extract data from .csv files.

If the file comes from Windows, the first three bytes of the file contain a “Byte Order Mark” (in my case ef bb bf) that will crash the beanio reader.

In order to process Windows files I have to first run them through some external program to remove the BOM.

I’ve searched the documentation and unless I’ve missed something it appears that the ability to do this is not available in this release.

XML snippet below:

<stream name=“inputFile" format="csv">
   <parser>
      <property name="delimiter" value="," />
      <!--property name="quote" value="\" /-->
      <property name="comments" value="HeaderLineBegin" />
   </parser>
    …
</stream>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant