diff --git a/DeDRM_plugin/flatxml2html.py b/DeDRM_plugin/flatxml2html.py index f1ca81d..45e6949 100644 --- a/DeDRM_plugin/flatxml2html.py +++ b/DeDRM_plugin/flatxml2html.py @@ -559,7 +559,7 @@ class DocParser(object): if (link > 0): linktype = self.link_type[link-1] title = self.link_title[link-1] - title = title.rstrip(b'. ') + title = title.rstrip(b'. ').decode('utf-8') alt_title = parares[lstart:] alt_title = alt_title.strip() # now strip off the actual printed page number