From a89bce0b6ecfc43d40a5787c813f2a50f3dd5390 Mon Sep 17 00:00:00 2001 From: Charles-Henri Decultot Date: Thu, 1 Nov 2018 08:48:49 +0100 Subject: [PATCH] Encoding correction (#15877) --- erpnext/accounts/report/financial_statements.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/report/financial_statements.py b/erpnext/accounts/report/financial_statements.py index 937911f4836..557f5b3a582 100644 --- a/erpnext/accounts/report/financial_statements.py +++ b/erpnext/accounts/report/financial_statements.py @@ -342,7 +342,7 @@ def set_gl_entries_by_account( accounts = frappe.db.sql_list("""select name from `tabAccount` where lft >= %s and rgt <= %s""", (root_lft, root_rgt)) additional_conditions += " and account in ('{}')"\ - .format("', '".join([frappe.db.escape(d) for d in accounts])) + .format("', '".join([frappe.safe_encode(frappe.db.escape(d)) for d in accounts])) gl_entries = frappe.db.sql("""select posting_date, account, debit, credit, is_opening, fiscal_year, debit_in_account_currency, credit_in_account_currency, account_currency from `tabGL Entry` where company=%(company)s