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):
|
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
|
||||||
|
|
||||||
|
|
@ -33,4 +33,4 @@ class QWebContentEdit(QtApplication):
|
||||||
self.main_window.show()
|
self.main_window.show()
|
||||||
return self.weboob.loop()
|
return self.weboob.loop()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 = ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue