Deprecated: Function utf8_encode() is deprecated since 8.2, /phpwhois/src/Whois.php on line 101 Replace $query = $idn->convert(utf8_encode($query)); to $query = $idn->convert(mb_convert_encoding($query, 'UTF-8'));