Skip to content

Commit

Permalink
[encoding] change default options.encoding to utf-8-sig to detect/rem…
Browse files Browse the repository at this point in the history
…ove BOM #200 #908 #909 #1711
  • Loading branch information
saulpw committed Oct 20, 2023
1 parent 3bedd8d commit d0544a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visidata/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from visidata import vd
from visidata import VisiData, Progress

vd.option('encoding', 'utf-8', 'encoding passed to codecs.open when opening a file', replay=True)
vd.option('encoding', 'utf-8-sig', 'encoding passed to codecs.open when reading a file', replay=True)
vd.option('encoding_errors', 'surrogateescape', 'encoding_errors passed to codecs.open', replay=True)

@VisiData.api
Expand Down

0 comments on commit d0544a2

Please sign in to comment.