From 1c2497c7d0a2d9d5f58ea1d872bde496f048ffd6 Mon Sep 17 00:00:00 2001 From: MichaƂ Klichowicz Date: Fri, 6 Oct 2023 02:54:56 +0200 Subject: Ability to force PBN encoding --- src/main.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main.py') diff --git a/src/main.py b/src/main.py index 11ad472..8953571 100644 --- a/src/main.py +++ b/src/main.py @@ -39,6 +39,7 @@ def get_pbn_source(config): r = requests.get(config['url'], auth=request_auth, headers=request_headers) r.raise_for_status() + r.encoding = config.get('encoding', 'utf8') remote_content = r.text logging.info('Fetched %d bytes', len(remote_content)) -- cgit v1.2.3