Commit f9e67207 authored by Ivan Tyagov's avatar Ivan Tyagov

Value of text_content is an unicode string whose (inside XML) encoding is...

Value of text_content is an unicode string whose (inside XML) encoding is utf-8. This inconsistency raises in xml library thus it is safer to convert back to utf-8 which is the intended encoding anyway.
parent f83f35e4
......@@ -183,6 +183,8 @@ class SlapOSMasterCommunicator(object):
message_list = []
try:
for instance in self.getInstanceUrlList():
# we need to explicitly encode as utf-8 the unicode string we get
instance["text_content"] = instance["text_content"].encode('utf8')
news = instance['SoftwareInstance_getNewsDict']
state = INSTANCE_STATE_UNKNOWN
monitor_information_dict = {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment