bytes back to string

This commit is contained in:
Sean Dockray 2020-06-05 12:25:52 +10:00
parent ef75acd1b3
commit b3ca36ac5c
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ def get_record_text(post):
text += "---"
else:
prefix = prefixes.get(child.type, "")
text += prefix + str(child.title.encode('utf-8')) + "\n\n"
text += prefix + child.title.encode('utf-8').decode('utf-8') + "\n\n"
text = re.sub('`bib:([a-zA-Z0-9-]+)`', r'![](bib:\1)', text)
return text