Bom

TravisHex.pmHex Docs

An elixir library for working with BOM (byte order mark).

Installation

def deps do
  [
    {:bom, "~> 0.1.1"}
  ]
end

Usage

iex> BOM.add("test")
"\uFEFFtest"
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