mirror of
https://github.com/Froxlor/Froxlor.git
synced 2024-09-21 10:27:29 +00:00
Merge branch 'main' of github.com:Froxlor/Froxlor
This commit is contained in:
commit
f71ee9f1f2
@ -64,7 +64,7 @@ class IdnaWrapper
|
||||
*/
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user