Skip to content

Instantly share code, notes, and snippets.

@krzyzanowskim
Created May 22, 2021 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krzyzanowskim/f2ca3e1e4f6dfd490fc35630b823eaac to your computer and use it in GitHub Desktop.
Save krzyzanowskim/f2ca3e1e4f6dfd490fc35630b823eaac to your computer and use it in GitHub Desktop.
one bom to rule them all
let bom: String = "\u{feff}" // The character \uFEFF is the BOM character for all UTFs (8, 16 LE and 16 BE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment