diff --git a/lib/Froxlor/Idna/IdnaWrapper.php b/lib/Froxlor/Idna/IdnaWrapper.php index 6ad750a041..0fc4228718 100644 --- a/lib/Froxlor/Idna/IdnaWrapper.php +++ b/lib/Froxlor/Idna/IdnaWrapper.php @@ -64,7 +64,7 @@ public function __construct() */ public function encode(string $to_encode): string { - $to_encode = $this->isUtf8($to_encode) ? $to_encode : utf8_encode($to_encode); + $to_encode = $this->isUtf8($to_encode) ? $to_encode : mb_convert_encoding($to_encode, 'UTF-8'); try { return $this->idna_converter->encode($to_encode); } catch (InvalidArgumentException $iae) {