1
2
3
4
5
use MIME::QuotedPrint;
use Encode;
$zeile = MIME::QuotedPrint::decode_qp($zeile);
$utf_string = Encode::encode("utf-8", $zeile);
1
2
3
4
5
$zeile = quoted_printable_decode($zeile);
/* veraltet */
$zeile = utf8_encode($zeile);
/* oder bevorzugt seit PHP 8.2 */
$zeile = mb_convert_encoding($zeile, "UTF-8");
1 2 3 4
use strict; use warnings; use MIME::QuotedPrint; print MIME::QuotedPrint::encode("ä"); # =C3=A4=