From 25c8e24fb79e3232da1e3233021bdb4a591dabee Mon Sep 17 00:00:00 2001 From: Yuki Nagato <37764578+YUKI2eN3e@users.noreply.github.com> Date: Wed, 9 Oct 2024 00:57:45 -0700 Subject: [PATCH] Fix "** You are using codepage utf-8" warning --- isbntools/_console.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isbntools/_console.py b/isbntools/_console.py index f5db108..32d6e26 100644 --- a/isbntools/_console.py +++ b/isbntools/_console.py @@ -115,7 +115,7 @@ def set_msconsole(): except: continue - if WINDOWS and PY3 and sys.stdout.encoding not in ('cp65001', 'cp1252'): + if WINDOWS and PY3 and sys.stdout.encoding not in ('cp65001', 'cp1252', 'utf-8'): LOGGER.debug('sys.stdout.encoding is %s', sys.stdout.encoding) print('') print(' WARNING: your system is not prepared for Unicode.')