Bom
An elixir library for working with BOM (byte order mark).
Installation
def deps do
[
{:bom, "~> 0.1.1"}
]
endUsage
- Add BOM to string
iex> BOM.add("test")
"\uFEFFtest"- Add BOM to file
iex> File.write!("test.csv", "hello")
iex> BOM.file_add("test.csv")
$ file test.csv
test.csv: UTF-8 Unicode (with BOM) text, with no line terminators