Incorrect Chinese Characters in PDF TOC converted from EPUB
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
calibre version: 2.21.0
operating system: tested on windows 7
When converting chinese EPUB file to PDF format, some Chinese characters in the TOC of result PDF are not correctly converted.
Here we made two screen shots (Problem1.png and Problem2.png) to demostrate the problem. In both pictires, the left hand side is the TOC tree in PDF file, and the right hand side is from the original EPUB file. The parts that we marked with red box is problmatic output.
In the first case (T49n2035.
In the second case (C077n1710.
It only happens in TOC section.
It seems that the problmes share the same pattern: coverting charcater ending with "0A", and the results characters becomes ending with "0D". We have a guess that it possibilty related to the "line break" characters in windows(0D , 0A) and in Linux system(0A), perhaps the program replaces 0D to 0A for dealing with the cross-platform issue.
We also observe that, the same pdf disaplays *correctly* in Ubuntu system.
Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.
status fixreleased