Fix export translation for unicode string
This commit is contained in:
1 parent
da7ce435e0
commit
e5df6080f2
1 file changed
+3
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user