From: Jakob Cornell Date: Sun, 12 Jan 2020 20:18:07 +0000 (-0600) Subject: XML bug fix X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=4de64065aed0b2e9a188541d6cc0ee6911e4db31;p=tutoring-tool.git XML bug fix --- diff --git a/main.py b/main.py index 0aacfeb..bbedceb 100644 --- a/main.py +++ b/main.py @@ -338,7 +338,7 @@ class MainView(View): for v in row: SubElem(tr, 'td').text = v - win_write_clipboard_html(ElementTree.tostring(table)) + win_write_clipboard_html(ElementTree.tostring(table, encoding = 'unicode')) self.gen_table_btn = ttk.Button(actions_frame, text = "Copy table to clipboard", command = on_gen_table) self.student_sel.pack(**TK_PAD, side = tk.LEFT)