Fix export translation for unicode string

This commit is contained in:
Cédric Krier committed 2008-08-06 00:32:51 +02:00
1 parent da7ce435e0
commit e5df6080f2
1 file changed
+3 -1
+3 -1
View File
@@ -435,7 +435,9 @@ class Translation(OSV, Cacheable):
elif field == 'fuzzy':
row.append(int(translation[field]))
else:
row.append(translation[field] or '')
value = translation[field] or ''
value = value.encode('utf-8')
row.append(value)
writer.writerow(row)
file_data = buf.getvalue()