-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
bat shows BOM at the start of the line #285
Comments
Thank you for your feedback. I have recently written a small library (https://crates.io/crates/content_inspector) that I plan to use within |
Just curious: I have never encountered a UTF-16BE file "in the wild". Where do they appear? Windows? |
Yeah, this came up in a c# code that only targets windows. But to be honest, i didnt check if that FEFF bom was BE or LE :) |
There was a commonly used Windows tool that generated UTF-16BE files by default (for no good reason really), but the default was thankfully changed to UTF8. When adding BOM detection, it would be great to convert UTF16 to UTF8. Right now, UTF16-LE renders |
That would be the plan, yes.
Notepad? :-) |
That'd be funny, but no, it was Thanks for the quick fix. |
when the source code has BOM at the begining of the line, its shown as "<U+FEFF>". I have now huge problem with this per se but it would be more user friendly to strip that piece away when showing the code and putting that info as interpreted value into same line as "File:" is, like additional piece "Encoding: UTF-16 Big Endian" ..
Happens atleast with bat 0.5.0
See https://en.wikipedia.org/wiki/Byte_order_mark for details
The text was updated successfully, but these errors were encountered: