fix encoding problems
This commit is contained in:
parent
5dfe053749
commit
78d601390a
2 changed files with 3 additions and 3 deletions
|
|
@ -23,7 +23,7 @@ from .main_window import MainWindow
|
|||
class QWebContentEdit(QtApplication):
|
||||
APPNAME = 'qwebcontentedit'
|
||||
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"
|
||||
CAPS = ICapContent
|
||||
|
||||
|
|
@ -33,4 +33,4 @@ class QWebContentEdit(QtApplication):
|
|||
self.main_window.show()
|
||||
return self.weboob.loop()
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -67,9 +67,9 @@ class WebContentEdit(ReplApplication):
|
|||
if isinstance(data, unicode):
|
||||
data = data.encode('utf-8')
|
||||
elif data is None:
|
||||
content.content = u''
|
||||
data = ''
|
||||
f.write(data)
|
||||
content.content = data
|
||||
paths[path] = content
|
||||
|
||||
params = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue