Dear Maintainer,
the following entry in the Chart::Gnuplot documentation is not correct,
Using the given statements results in an error (";" expected):
6. Title in non-English characters (Thanks to WOLfgang Schricker)
use Encode;
my $title = ... # Title with German umlauts
$title = decode("utf8", $title);
Chart::Gnuplot->new(
encoding => 'iso-8859-1',
title => $title,
);
The correct syntax should be:
Chart::Gnuplot->new(
encoding => 'utf8',
title => $title,
);
No decoding required. Takes also care about the labels.