kchmviewer icon indicating copy to clipboard operation
kchmviewer copied to clipboard

some .epub files miss encoding tag (and change encoding option is not available)

Open Alexqwesa opened this issue 1 year ago • 2 comments

In some epub files the line <?xml version='1.0' encoding='utf-8'?> in html files is missing.

So, files like https://github.com/Alexqwesa/files_for_bug_reports/blob/main/epub-wrong-encoding.epub are shown incorrectly

Possible solution:

  1. change default encoding to UTF8
  2. allow change encoding for epub files
  3. some other options?

To fix problem: sometime you only need tag <?xml version='1.0' encoding='utf-8'?>, but sometimes <meta charset="UTF-8"> is also required...

kchmviewer version 8.0 built at Mar 20 2023 12:00:00 - openSUSE 15.5

Alexqwesa avatar Sep 23 '23 04:09 Alexqwesa

the content of provided file look like this:

Next 2 lines just contain apostrofes: ’’’’’’’’’’’’’’’’’’’’’’’’’’’’’ '''''''''''''''''''''''''''''

Alexqwesa avatar Sep 23 '23 04:09 Alexqwesa

This is possibly a regression due to Webengine — i haven't ever noticed this problem with the QtWebkit Windows build.

brjsp avatar Jan 26 '24 21:01 brjsp