Und das auch bei Objekt-Aufrufsyntax:
$text = SL::Iconv::convert('ISO-8859-15', 'UTF-8', $some_other_text);
$to_charset ||= Common::DEFAULT_CHARSET;
my $converter = _get_converter($from_charset, $to_charset);
$to_charset ||= Common::DEFAULT_CHARSET;
my $converter = _get_converter($from_charset, $to_charset);
- return $converter->convert($text);
+ $text = $converter->convert($text);
+ $text = decode("utf-8-strict", $text) if ($to_charset =~ m/^utf-?8$/i) && !Encode::is_utf8($text);
+
+ return $text;