id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
10848	Encode data as utf-8 during csv export	anonymous	rjollos	If the database utf-8 encoded data is used it cannot be exported as the csvwriter will convert to ascii automatically.\r\n\r\nBelow is a small fix to solve the problem:\r\n{{{\r\n#!patch\r\n--- hours.py_2013-02-01 11:14:35.059829098 +0100\r\n+++ hours.py.no-utf8_2013-01-30 15:22:38.300399554 +0100\r\n@@ -1015,10 +1015,10 @@\r\n \r\n         for groupname, results in data['groups']:\r\n             if groupname:\r\n-                writer.writerow(unicode(groupname).encode('utf-8'))\r\n-            writer.writerow([unicode(header['label']).encode('utf-8') for header in data['headers']])\r\n+                writer.writerow(groupname)\r\n+            writer.writerow([header['label'] for header in data['headers']])\r\n             for result in results:\r\n-                writer.writerow([unicode(result[header['name']]).encode('utf-8') \r\n+                writer.writerow([result[header['name']] \r\n                                  for header in data['headers']])\r\n             writer.writerow([])\r\n}}}	defect	new	normal	TracHoursPlugin	normal				
