View Full Version : Problem with accents in the OPF file

05-07-2013, 01:01 PM

I'm having trouble validating my EPUB because of "special" accents in the .opf file.

Here's what I have in the .opf:

<package xmlns="" unique-identifier="bookid" version="2.0">
<metadata xmlns:dc="" xmlns:opf="">
<dc:creator opf:role="aut" opf:file-as="Xxxx, Xxxx">Xxxx Xxxx</dc:creator>
<dc:creator opf:role="aut" opf:file-as="Yyyy, Yyyy">Yyyy Yyyy</dc:creator>

and this is what I get from epubcheck:

ERROR: /Users/silviolorusso/Desktop/PhD/digital toolkit/unike-us-epub/6-epub-slim/unlike-us-reader.epub: I/O error reading OEBPS/content.opf: Invalid byte 1 of 1-byte UTF-8 sequence.

05-07-2013, 01:22 PM
Ok solved,

I had to set the actual file encoding to "UTF-8".

05-07-2013, 01:36 PM
All files should be UTF-8 encoded. Try to avoid special characters in names when you can.

05-07-2013, 06:08 PM
Try to avoid special characters in names when you can.

If "names" means filenames, then I agree, filenames are just arbitrary, so there's no harm in using only ASCII characters in them (and no spaces). But if you mean real person names, then I can't agree, you should always write the names with the correct characters (with the possible exception of transliterated names from other scripts... other than the main book language, of course).

05-08-2013, 04:51 AM
Of course I meant filenames Jellby!