I'm trying to get some non-ASCII characters into generated headers, and it's not working. Here's my input document:
The left header, with the ASCII quotation marks, is fine, but the right header is null; I assume the reason is the use of the Unicode “curly quotation marks” (U-8220 and U-8221) in the content attribute. Even HTML 4.0 Latin-1 entities break the header, e.g. © (the © symbol).
Is this a limitation in CSS or in Prince? There are times when you really need non-ASCII characters in a header or footer, so if at all possible, can they be enabled?
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Test</title>
<style type="text/css">
@page {
@top-left { content: 'This is a "left" header' }
@top-right { content: 'This is a “right” header' }
}
</style>
</head>
<body>
<h1>Test</h1>
<p>This is "straight quotes" and “curly quotes”.</p>
</body>
</html>
The left header, with the ASCII quotation marks, is fine, but the right header is null; I assume the reason is the use of the Unicode “curly quotation marks” (U-8220 and U-8221) in the content attribute. Even HTML 4.0 Latin-1 entities break the header, e.g. © (the © symbol).
Is this a limitation in CSS or in Prince? There are times when you really need non-ASCII characters in a header or footer, so if at all possible, can they be enabled?
David Sewell, Editorial and Technical Manager
Electronic Imprint, The University of Virginia Press
Web: http://rotunda.upress.virginia.edu/