Forum Bugs

Encoding problem?

patpat
I'm trying to convert an HTML page...
it contains
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

the page has European characters á é í ó ú but they are tolerated on ISO-8859-1

the convert_file_to_file() fails returning...

Array
(
    [0] => Array
        (
            [0] => wrn
            [1] => /opt/prince/fonts//75dpi/luRS14.pcf.Z
            [2] => font has no TrueType outlines
        )
    [1] => Array
        (
            [0] => wrn
            [1] => /opt/prince/fonts//75dpi/luBS08.pcf.Z
            [2] => font has no TrueType outlines
        )
    [2] => Array
        (
            [0] => wrn
            [1] => /opt/prince/fonts//75dpi/luIS12.pcf.Z
            [2] => font has no TrueType outlines
        )
    [3] => Array
        (
            [0] => wrn
            [1] => /opt/prince/fonts//75dpi/helvO18.pcf.Z
            [2] => font has no TrueType outlines
        )
    [4] => Array
        (
            [0] => wrn
            [1] => /opt/prince/fonts//75dpi/luBIS12.pcf.Z
            [2] => font has no TrueType outlines
        )
    [5] => Array
        (
            [0] => wrn
            [1] => /opt/prince/fonts//TTbitmaps/Arial-BoldItalic18.pcf.Z
            [2] => font has no TrueType outlines
        )
    [6] => Array
        (
            [0] => wrn
            [1] => /opt/prince/fonts//100dpi/helvBO24.pcf.Z
            [2] => font has no TrueType outlines
        )
     [7] => Array
        (
            [0] => wrn
            [1] => 
            [2] => no glyphs for character U+0028, fallback to '?'
        )
    [8] => Array
        (
            [0] => err
            [1] => 
            [2] => no fallback glyph for character U+0028
        )
)


the U+0028 is the (

I don't care about the font warnings.. the system find the specified Verdana TTF font
The conversion works perfectly on other pages, even with the above mentioned European chars... I don't understand... any help appreciated...
thanks
Pat
mikeday
It seems that some text is trying to be displayed using the default serif font-family, which will try Times New Roman or DejaVu Serif. If none of these can be found, Prince is stuck, as the text cannot be emitted. If you don't have either of these fonts installed on the system, you can install them, or edit the fonts.css file in the Prince installation to point to other fonts that you would prefer to use instead.