XML bug fix
authorJakob Cornell <jakob+gpg@jcornell.net>
Sun, 12 Jan 2020 20:18:07 +0000 (14:18 -0600)
committerJakob Cornell <jakob+gpg@jcornell.net>
Sun, 12 Jan 2020 20:18:07 +0000 (14:18 -0600)
main.py

diff --git a/main.py b/main.py
index 0aacfebd894ca88365cc426cfc0f0d40eb81a5fb..bbedceb2995fe2f6ca7bcfdb4d5a48e27329b74d 100644 (file)
--- 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)