#183 UnicodeEncodeError: 'charmap' codec can't encode character '\u0107' in position 865: character maps to <undefined>

This commit is contained in:
Ramesh R 2018-07-25 12:26:58 +05:30
parent 6d77989e34
commit ef34e6396c
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ class BlameOutput(Outputable):
blame_xml += " });"
blame_xml += "</script></div></div>"
print(blame_xml)
print(blame_xml.encode("utf-8"))
def output_json(self):
message_json = "\t\t\t\"message\": \"" + _(BLAME_INFO_TEXT) + "\",\n"

View File

@ -93,7 +93,7 @@ class ChangesOutput(Outputable):
changes_xml += "<p>" + _(NO_COMMITED_FILES_TEXT) + ".</p>"
changes_xml += "</div></div>"
print(changes_xml)
print(changes_xml.encode("utf-8"))
def output_json(self):
authorinfo_list = self.changes.get_authorinfo_list()