Changed CSV History export to UTF-8 labels
authordabura667 <matsuringo667@gmail.com>
Wed, 26 Feb 2014 13:21:51 +0000 (22:21 +0900)
committerdabura667 <matsuringo667@gmail.com>
Wed, 26 Feb 2014 13:24:52 +0000 (22:24 +0900)
Japanese characters were causing history to be aborted halfway through
export, so by changing the label to UTF-8 I was able to export the CSV
properly.

gui/qt/lite_window.py

index 6886743..c542306 100644 (file)
@@ -122,6 +122,7 @@ def csv_transaction(wallet):
 
                     if tx_hash:
                         label, is_default_label = wallet.get_label(tx_hash)
+                        label = label.encode('utf-8')
                     else:
                       label = ""