Subject: | ’ in HTML input yields garbage character in PostScript output |
Test script:
Show quoted text
---cut here---
#!/usr/bin/perl
use HTML::TreeBuilder;
use HTML::FormatPS;
$html = "<html><body>it’s an apostrophe</body></html>";
$tree = HTML::TreeBuilder->new_from_content($html);
$formatter = HTML::FormatPS->new();
$ps = $formatter->format($tree);
binmode STDOUT;
print $ps;
---cut here---
Redirect the output of the script to test.ps and then view test.ps and
you'll see that there's a garbage character where the apostrophe is
supposed to be.