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--- 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,,,,
