From 6074cd5bdd1224888a1bd742410b1bebd90e7913 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Tue, 8 Aug 2023 01:22:47 +0100 Subject: [PATCH] read config using utf-8 --- nbval/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbval/plugin.py b/nbval/plugin.py index ee3ff29..c2ceec3 100644 --- a/nbval/plugin.py +++ b/nbval/plugin.py @@ -277,7 +277,7 @@ def setup_sanitize_files(self): load the contents of the file into the sanitise patterns dictionary. """ for fname in self.get_sanitize_files(): - with open(fname, 'r') as f: + with open(fname, 'r', encoding="utf-8") as f: self.sanitize_patterns.update(get_sanitize_patterns(f.read()))