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

remove UTF8 BOM if present #7

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

finnboeger
Copy link
Contributor

No description provided.

@finnboeger
Copy link
Contributor Author

Even though the BOM is 0xEF 0xBB 0xBF for UTF-8 it gets changed into the BOM for UTF-16BE which is 0xFEFF when passing the file through the decoder but it doesn't get removed causing the parser to trip up and fail to find the first header tag which usually is an essential one.

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

Successfully merging this pull request may close these issues.

1 participant