From a5d7182817da497d85142d77a4e9bceede3c45af Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Tue, 21 Aug 2018 11:21:40 +0530 Subject: [PATCH] [Fix] Ascii code issue while downloading report (#5990) --- frappe/utils/xlsxutils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frappe/utils/xlsxutils.py b/frappe/utils/xlsxutils.py index c50a149adb..880726c16e 100644 --- a/frappe/utils/xlsxutils.py +++ b/frappe/utils/xlsxutils.py @@ -46,6 +46,8 @@ def make_xlsx(data, sheet_name, wb=None): def handle_html(data): # return if no html tags found + data = frappe.as_unicode(data) + if '<' not in data: return data if '>' not in data: