fix encoding problems

This commit is contained in:
Romain Bignon 2011-03-01 13:33:51 +01:00
commit 78d601390a
2 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ from .main_window import MainWindow
class QWebContentEdit(QtApplication): class QWebContentEdit(QtApplication):
APPNAME = 'qwebcontentedit' APPNAME = 'qwebcontentedit'
VERSION = '0.6' VERSION = '0.6'
COPYRIGHT = 'Copyright(C) 2011 Clément Schreiner' COPYRIGHT = u'Copyright(C) 2011 Clément Schreiner'
DESCRIPTION = "Qt application for managing content on supported websites" DESCRIPTION = "Qt application for managing content on supported websites"
CAPS = ICapContent CAPS = ICapContent

View file

@ -67,9 +67,9 @@ class WebContentEdit(ReplApplication):
if isinstance(data, unicode): if isinstance(data, unicode):
data = data.encode('utf-8') data = data.encode('utf-8')
elif data is None: elif data is None:
content.content = u''
data = '' data = ''
f.write(data) f.write(data)
content.content = data
paths[path] = content paths[path] = content
params = '' params = ''