Forum How do I...?

CSS parse warning & char problem in Header/Footer

patpat
I'm not at css expert...

I'm using this simple css file

@page {
margin: 45pt 45pt 45pt 45pt ;
size: US-Letter ;
    @top {
	content: "www.yyy.com";
        font-size: 10pt;
        font-family:sans-serif, Verdana;            
               }
    @bottom {
	content: "Página " counter(page) " de " counter(pages);
        font-size: 10pt;
        font-family:sans-serif, Verdana;            
    }
}

<style type="text/css">
<!--
td, p, li, div
{
	font: 10pt verdana, geneva, lucida, arial, helvetica, sans-serif;
}
.smallfont
{
	font-size: 11px;
}
.tborder
{
	border: 1px solid #808080;
}
.thead
{
	background-color: #EEEEEE;
}
.page
{
	background-color: #FFFFFF;
	color: #000000;
}
-->
</style>



I'm getting a warning ...
prince: C:\Program Files\Prince\Engine\bin\my.css: warning: failed to p
arse all CSS rules

And these errors...

prince: warning: no glyphs for character U+19E9, fallback to '?'
prince: warning: no glyphs for character U+19E9, fallback to '?'
prince: warning: no glyphs for character U+19E9, fallback to '?'
prince: warning: no glyphs for character U+19E9, fallback to '?'
prince: warning: no glyphs for character U+19E9, fallback to '?'
prince: warning: no glyphs for character U+19E9, fallback to '?'

the problem is the word "Página" with the accent ot its "a" used on the footer... it's weird because Prince is able to print in the body of the page the characters á, é, í, ó, ú, ñ, but it cannot print them on footers & headers even using the same font...

any thoughts?
mikeday
If your CSS rules are in an external style sheet file, you will need to use UTF-8 encoding or escape non-ASCII characters (eg. á is \E1). If your CSS rules are within the <style> element inside an HTML or XHTML document, then they should be fine as long as they are correctly using the same character encoding as the document.
patpat
the scape sequence did the trick Thanks !!
but I'm still getting the warning

prince: C:\Program Files\Prince\Engine\bin\my.css: warning: failed to parse all CSS rules

just parsing this css...

<style type="text/css">
<!--
td, p, li, div
{
   font: 10pt verdana, geneva, lucida, arial, helvetica, sans-serif;
}
.smallfont
{
   font-size: 11px;
}
.tborder
{
   border: 1px solid #808080;
}
.thead
{
   background-color: #EEEEEE;
}
.page
{
   background-color: #FFFFFF;
   color: #000000;
}
-->
</style> 



what can be wrong with it?? the PDF I get looks ok but I'd like to know what the warning means....

Thanks
mikeday
Is this an external CSS file? If so, you don't need the <style> ... </style> element around the rules, nor do you need the <!-- comment -->.
patpat
external CSS file,
your comment solved the warning...

Lovely when support is available even on Sundays...

thanks