From 064f282c00135715f65a59bc1e47ce18a55b0b4f Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Fri, 8 Nov 2019 17:26:38 +0100 Subject: [PATCH] Fix Ricerca (Generi, Orain onda, ecc...) --- core/support.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/support.py b/core/support.py index d3dff488..0af99c2c 100644 --- a/core/support.py +++ b/core/support.py @@ -682,8 +682,8 @@ def menu(func): def typo(string, typography=''): kod_color = '0xFF65B3DA' #'0xFF0081C2' - - string = str(string) + try: string = str(string) + except: string = str(string.encode('utf8')) # Check if the typographic attributes are in the string or outside if typography: string = string + ' ' + typography