[Petal] UTF8 under Perl 5.6.1

William McKee william at knowmad.com
Mon Feb 28 14:51:18 GMT 2005


On Sun, Feb 27, 2005 at 08:14:06AM +1300, Grant McLean wrote:
> The UTF8 implementation in 5.6 is not great, but it certainly does work
> for simple cases like the one you quote.

OK, so I can eliminate that as a problem.


> The recommended approach is to include a meta-equiv tag in your HTML
> head:

I do both of these. It's as if Petal is outputting the page in ISO8859-1
instead of UTF8. Michele B. commented that he's had to subclass Petal to
force it to output UTF8 because it was not always doing so.

I tried using Encode but quickly realized that it is not available under
Perl 5.6. So, does anyone have any idea of what encoding Perl uses in
this case? Here's the line that loads the template:

  open FP, "<$file_path" || die 'Cannot read-open $file_path';


Thanks,
William

-- 
Knowmad Services Inc.
http://www.knowmad.com


More information about the Petal mailing list