From 08742d4afdec6d2567c1d711dd4b5ce9faaf4e0e Mon Sep 17 00:00:00 2001 From: azzy9 <19675382+azzy9@users.noreply.github.com> Date: Wed, 10 Jan 2024 22:07:37 +0000 Subject: [PATCH] stop removal of ascii characters --- lib/general.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/general.py b/lib/general.py index 9a066ca..23cf4f3 100644 --- a/lib/general.py +++ b/lib/general.py @@ -155,7 +155,7 @@ def clean_text( text ): """ Removes characters that can cause trouble """ - text = text.encode('ascii', 'ignore').decode('ascii').strip() + text = text.strip() if r'&' in text: text = text.replace(r'&', '&')