Chomp Unicode BOM if present
authorMattias Wadman <mattias.wadman@gmail.com>
Tue, 12 Apr 2016 22:14:00 +0000 (00:14 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 14 Apr 2016 08:46:27 +0000 (10:46 +0200)
commit5d50c46482d231efa26c95e4705e720fb9bf753c
tree413d6bfc1f632d6e0f398471baf0f3a56b392522
parentd48b986c45f8d5a5fef7c98da17af8ca82867b25
Chomp Unicode BOM if present

Useful if using or sharing files with users that use editors that
append a unicode byte order marker header (like Windows notepad).

This will still assume files are UTF-8 encoded.

Closes #2075
hugolib/page_test.go
parser/page.go