Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Froxlor/Froxlor
Browse files Browse the repository at this point in the history
  • Loading branch information
d00p committed Nov 8, 2023
2 parents 0bee1f0 + dd61302 commit f71ee9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Froxlor/Idna/IdnaWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f71ee9f

Please sign in to comment.