Commits

Anonymous committed fab7c71

add coding declaration

Comments (0)

Files changed (1)

dbgettext/management/commands/dbgettext_export.py

         def write(file, string):
             string = string.replace('"','\\"') # prevent """"
             string = string.encode('utf8')
-            file.write('gettext("""%s""")\n' % string)
+            file.write('# -*- coding: utf-8 -*-\ngettext("""%s""")\n' % string)
 
         root = os.path.join(self.path, self.root)