From ccd9642784acc0c7fac2a1e1c6cf5c0f948f6e9a Mon Sep 17 00:00:00 2001 From: acidvegas Date: Wed, 11 Dec 2024 21:43:44 -0500 Subject: [PATCH] Fixed UTF-8 stdout --- apv/__init__.py | 2 +- apv/apv.py | 3 +++ setup.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apv/__init__.py b/apv/__init__.py index dd15fbd..3c91ec6 100644 --- a/apv/__init__.py +++ b/apv/__init__.py @@ -1,4 +1,4 @@ from .apv import * -__version__ = '1.0.3' +__version__ = '1.0.4' __author__ = 'acidvegas' diff --git a/apv/apv.py b/apv/apv.py index d32e7bb..72e0693 100644 --- a/apv/apv.py +++ b/apv/apv.py @@ -4,6 +4,9 @@ import logging import logging.handlers +import sys + +sys.stdout.reconfigure(encoding='utf-8') class LoggerSetup: def __init__(self, level='INFO', date_format='%Y-%m-%d %H:%M:%S', diff --git a/setup.py b/setup.py index 160cd03..2bef877 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ with open('README.md', 'r', encoding='utf-8') as fh: setup( name='apv', - version='1.0.3', + version='1.0.4', description='Advanced Python Logging', author='acidvegas', author_email='acid.vegas@acid.vegas',