![]() |
#1 |
Enthusiast
![]() Posts: 43
Karma: 30
Join Date: Feb 2016
Device: none
|
Obscure ePub validation error
Hi, and thanks for your help.
I've built the ePub from scratch using Notepad++ and I'm using dummy content files to get the package working. I have only one remaining error when I use the online epub validator at http://validator.idpf.org/, but I can't see the cause. The error is: ./tmp/uploads/1455200484959_0000117833/inputFile/mybook5.epub/OEBPS/content.opf(-1,-1) There was an error when parsing the EPUB version: Version not found. My content.opf starts like this (I've replaced confidential info below with XXXX): <?xml version="1.0" encoding="utf-8"?> <package version="2.0" xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookId"> <metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns ![]() <!--Required Metadata--> <dc:title>XXXXXX</dc:title> <dc:language>en-gb</dc:language> <dc:identifier id="BookId" opf:scheme="ISBN">urn:isbn:XXXXXXX</dc:identifier> <!--Use the Same for the toc.ncx file --> <dc:creator opf:role="aut">XXXXXXX</dc:creator> <dc ![]() ![]() <dc:date>2016-03-14</dc:date> <meta name="cover" content="My_Cover_ID"/> <!--Required for KindleGen--> etc etc <metadata> I see above that code "colon o" got interpreted as an icon above. The original looks ok. Thanks for your help ![]() Last edited by brahms; 02-11-2016 at 09:30 AM. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
It looks alright from what I can see. Did you store the opf with UTF-8 encoding?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 43
Karma: 30
Join Date: Feb 2016
Device: none
|
|
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Download epubcheck 4.0.1 and try that. There is no indication what version validator is being use online.
|
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() Posts: 43
Karma: 30
Join Date: Feb 2016
Device: none
|
Thanks JS; I'll give that a shot later and get back.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Always use UTF-8 as file encoding. That is easy enough with Notepad++ and as you already specify that the content is UTF-8, you must ensure that it actually is. If characters change is you change the encoding, reenter the required character.
|
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() Posts: 43
Karma: 30
Join Date: Feb 2016
Device: none
|
Thanks Toxaris. Will do.
A how-to book i'm using says encode the toc.ncx in ANSI. Is that correct? |
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
|
![]() |
![]() |
![]() |
#9 |
Enthusiast
![]() Posts: 43
Karma: 30
Join Date: Feb 2016
Device: none
|
Many thanks guys. The problem was caused by the wrong encoding of some files. Notepad++ seems to remember the last file's encoding setting so if you resave a file without checking it can re=encode.
Or something like that. ![]() Again, many thanks. Dave |
![]() |
![]() |
![]() |
#10 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
In some older version ADE, I've seen display errors due to not being encoded as UTF-8 BOM.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Epub validation error | Pixie25 | ePub | 13 | 09-18-2012 09:39 AM |
Epub Validation Error Help Please | VictoriaSkyline | ePub | 18 | 06-14-2012 11:21 AM |
epub validation error | adetutuijose | ePub | 12 | 01-14-2012 10:05 PM |
epub validation error | sassanik | Sigil | 19 | 12-08-2010 05:46 AM |
ePub Validation Error | mrbillb | ePub | 6 | 09-28-2010 02:14 PM |