From d0544a227cd6d5b87dc2b7064c8633e2250969f6 Mon Sep 17 00:00:00 2001 From: Saul Pwanson Date: Fri, 20 Oct 2023 16:02:21 -0700 Subject: [PATCH] [encoding] change default options.encoding to utf-8-sig to detect/remove BOM #200 #908 #909 #1711 --- visidata/path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/visidata/path.py b/visidata/path.py index ea995cf15..fd32c00eb 100644 --- a/visidata/path.py +++ b/visidata/path.py @@ -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