Avraham Shapiro wrote:
>>What is the exact error message you get?
> The error is from a Z39.86 validator:
> <detail>File 59006.opf does not have UTF-8 encoding definition.</detail>
Why did you think this had something to do with quotes?
>>VersionInfo ::= S 'version' Eq ("'" VersionNum "'" | '"' VersionNum '"')
>>EncodingDecl ::= S 'encoding' Eq ('"' EncName '"' | "'" EncName "'" )
> It looks like both altternatives in the EBNF above use the double quotes.
No, look closer. It's either a single quote (shown in the first
alternative enclosed in double quotes) or a double quote (shown in the
second example enclosed in single quotes). Make sure you use a
fixed-width font when reading this. Never use anything else for reading
> Shouldn't one be a single quote?
>>So your file is correct and your software is probably broken.
But on the evidence of your error message, I retract this: I see nothing
to suggest the software is handling quotes wrongly.
>>What are you using, may I ask?
> An in house validator of Z39.86 digital books.
You need to know what "UTF-8 encoding definition" is. The error message
as it stands does not make any sense.
I *strongly* recommend that you use one of the well-known public open
source parser/validators like the two I suggested. I cannot see any good
reason in 2005 to be using a homebrew parser/validator.