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

UTF-8 BOM documentation #30

Closed
pfusik opened this issue Oct 9, 2021 · 2 comments
Closed

UTF-8 BOM documentation #30

pfusik opened this issue Oct 9, 2021 · 2 comments

Comments

@pfusik
Copy link
Collaborator

pfusik commented Oct 9, 2021

cito accepts source files with and without the UTF-8 BOM.
The doc currently recommends using them, because that makes the UTF-8 encoding explicit, which helps many tools, especially on Windows.
There are pros and cons of the BOM which can be discussed here.

@tialaramex
Copy link

Do you have some examples of "many tools, especially on Windows" ? I think this helps clarify.

@pfusik pfusik closed this as completed in fa0fbef Oct 9, 2021
@pfusik
Copy link
Collaborator Author

pfusik commented Oct 9, 2021

Okay, I've been mistaken. I now checked Visual Studio 2019, Git, TortoiseGit, Windows 10 Notepad, MSYS2 tools such as grep/less/cat and they all read UTF-8 w/o BOM. I use SciTE which supports a ton of programming languages and it can be easily configured to default to UTF-8. Windows more and findstr don't support UTF-8 regardless of the BOM.

I've just removed the recommendation. Thanks a lot!

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

2 participants