Skip to content

Instantly share code, notes, and snippets.

@myme
Created May 18, 2011 09:24
Show Gist options
  • Save myme/978275 to your computer and use it in GitHub Desktop.
Save myme/978275 to your computer and use it in GitHub Desktop.
Transifex 0.7 encoding issues
diff -r 383d275de04c transifex/webtrans/wizards.py
--- a/transifex/webtrans/wizards.py Thu Jul 01 00:43:08 2010 +0000
+++ b/transifex/webtrans/wizards.py Wed May 18 09:21:56 2011 +0000
@@ -404,7 +404,7 @@
filename = self.pofile.filename
if self.po_entries_changed:
- po_contents = self.po_entries.__str__().encode('utf-8')
+ po_contents = self.po_entries.__str__().decode('utf-8').encode('utf-8')
edited_file = SimpleUploadedFile(filename, po_contents)
result_view = component_submit_file(request=request,
project_slug=project_slug, component_slug=component_slug,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment