[Foomatic] [patch] PPD.pm: handle non-ASCII in PPDs

Till Kamppeter till.kamppeter at gmx.net
Sun Nov 28 14:58:09 PST 2004


Tim Waugh wrote:
> On Sat, Nov 27, 2004 at 01:18:47AM +0100, Till Kamppeter wrote:
> 
> 
>>Thanks for the patch.
>>
>>Is it correct that this patch simply replaces the 8-bit characters by 
>>"?"? Should one not escape them somehow that the characters are conserved?
> 
> 
> Ideally it would convert them from ISO-8859-1 (which they almost
> certainly are) to UTF-8.  I couldn't figure out how to do that in
> perl, unfortunately.
>

Is there no hint in the PPDs in which encoding they are encoded? Does 
the Adobe specification for PPDs require a certain encoding?

> This is just a 'make it limp along' fix.  The particular case that
> triggered it was an HP PPD file with a degrees sign (I think) in the
> name for an angular option of some sort.
>

If the encoding of the file does not comply the Adobe specification we 
have to inform the HP guys.

    Till




More information about the Printing-foomatic mailing list