![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 1435120
Join Date: Nov 2010
Location: West of the Pecos
Device: FireHD8, iPad
|
UTF-8 check?
Among many other functions, the Modify ePub plugin does a lovely job of adding the UTF-8 HTML style where it's missing (or fixing it when another style has been erroneously set). If an ePub doesn't have the UTF-8 setting in place, Amazon's Kindle may (probably will) display the ePub's text incorrectly.
But how does one know whether the HTML style has been set to UTF-8? Well, one can have Calibre send the ePub to one's Kindle address and then discover the formatting issue is present, then delete that book, then use the Modify ePub plugin to fix the HTML style problem, then re-send the book to the Kindle again. But what if there was a way to display the existing HTML style in a column so one would actually know whether the problem needs to be corrected (and then the Modify ePub plugin could be used)? Perhaps there's already way to display this setting somewhere in Calibre? Obviously, inquiring minds want to know...at least this one, anyway. Thanks very much, Barry Last edited by rumplestiltskin; 11-15-2022 at 01:38 AM. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,356
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, there isnt. It would require scanning book content which is too slow.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 1435120
Join Date: Nov 2010
Location: West of the Pecos
Device: FireHD8, iPad
|
Thank you, Kovid, for your quick reply. The info seems to be in the .ncx and .opf files. As a workaround, I've been having Calibre do an automatic epub-to-epub conversion (with the UTF-8 style) upon import. Might be a waste of CPU power but at least I'm sure that my Kindle will display the text properly.
|
![]() |
![]() |
![]() |
#4 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
If you want to try to automate this process when you import an ePub, you might be able to do so using an action chain with the Action Chains plugin. |
|
![]() |
![]() |
![]() |
#5 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 1435120
Join Date: Nov 2010
Location: West of the Pecos
Device: FireHD8, iPad
|
Thanks, theducks. A bit too complicated for my needs.
I think I'll just manually hit every new ePub as it enters my library with Modify ePub plugin's "Encode HTML in UTF-8" function. Hopefully, that should satisfy my Kindle. |
![]() |
![]() |
![]() |
#7 |
Member
![]() Posts: 20
Karma: 10
Join Date: Oct 2014
Device: Kindle Voyage
|
fix epub errors for Kindle conversion
I've sent epubs to Kindle to convert and had those weird markup marks instead of some punctuation (I assume) all through the text. My workaround has been to use Calibre to convert the epub to mobi and then back to epub, and that seems to work.
I don't know why Amazon won't allow mobi files to be sent for conversion as well as epubs. I haven't figured out how to import epubs as UTF-8, if that's what is needed, so meanwhile, I'm doing the back-and-forth conversion in Calibre. Any suggestions for easier conversion welcome. (I'm using Calibre 6.1 still.) |
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,356
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Just convert epub to epub no need to go to mobi first
|
![]() |
![]() |
![]() |
#9 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,234
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
One item to remember is that an epub MUST use either UTF-8 or UTF-16 encoding (it's part of the specification). I have only seen 3 epubs that used UTF-16.
To quote from the EPUB 3.2 specification, section 3.3 XML Conformance: Quote:
OTOH, most publishers will require that an epub pass epubcheck before being accepted. One example of an epub that I ran into years back that tried to use ISO8859-1 encoding gave the following error messages when I ran epubcheck on it: Code:
FATAL(RSC-016): Fatal Error while parsing file: Invalid encoding name ""ISO8859-1"". ERROR(RSC-028): XML documents must be encoded in UTF-8, but "ISO8859-1" was detected." |
|
![]() |
![]() |
![]() |
#10 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#11 |
Member
![]() Posts: 20
Karma: 10
Join Date: Oct 2014
Device: Kindle Voyage
|
|
![]() |
![]() |
![]() |
#12 |
Member
![]() Posts: 20
Karma: 10
Join Date: Oct 2014
Device: Kindle Voyage
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
UTF-16 forced to UTF-8 | brolny | Sigil | 7 | 09-22-2015 12:56 PM |
Are DRM books with check in/check out allowed? | i8abug | Library Management | 4 | 05-31-2012 02:27 PM |
I specified UTF-16 instead of UTF-8 | ronaldl | Sigil | 2 | 12-22-2011 04:59 AM |
Malformed byte sequence: Invalid byte 2 of 3-byte UTF-8 sequence. Check encoding | digireads | ePub | 3 | 04-26-2011 03:07 AM |
UTF-8 | tompe | Calibre | 2 | 05-06-2009 06:35 PM |