From 05808554a04d9892f575b96aaccfa057d3a58846 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Mon, 30 Oct 2017 13:42:49 +0530 Subject: [PATCH] [fix] Not able to export general ledger report's data in excel --- frappe/utils/xlsxutils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frappe/utils/xlsxutils.py b/frappe/utils/xlsxutils.py index d4c4727299..c9ce1867f2 100644 --- a/frappe/utils/xlsxutils.py +++ b/frappe/utils/xlsxutils.py @@ -29,6 +29,10 @@ def make_xlsx(data, sheet_name, wb=None): value = handle_html(item) else: value = item + + if isinstance(value, basestring): + value = value.encode('unicode_escape').decode('utf-8') + clean_row.append(value) ws.append(clean_row)