frithnanth / Raku-Net-Whois

An interface to the WHOIS protocol
Artistic License 2.0
0 stars 1 forks source link

Encoding error: Malformed UTF-8 #1

Closed Zer0-Tolerance closed 11 months ago

Zer0-Tolerance commented 11 months ago

Hi, I get this error when trying to query a specific IP :

use Net::Whois;
my Net::Whois $w .= new;
$w.query: '185.87.179.52','whois.ripe.net';
Malformed UTF-8 near bytes 74 6d fc
  in method connection at /Users/.rakubrew/versions/moar-2023.10/share/perl6/site/sources/2D55A1725C9F695FDB6E10CA4439FE4E780E4840 (Net::Whois) line 61
  in method query at /Users/.rakubrew/versions/moar-2023.10/share/perl6/site/sources/2D55A1725C9F695FDB6E10CA4439FE4E780E4840 (Net::Whois) line 22
  in block <unit> at <unknown file> line 1
  in any <main> at /Users/.rakubrew/versions/moar-2023.10/bin/../share/perl6/runtime/perl6.moarvm line 1
  in any <entry> at /Users/.rakubrew/versions/moar-2023.10/bin/../share/perl6/runtime/perl6.moarvm line 1

maybe a fallback to latin1 would be sufficient ?

frithnanth commented 11 months ago

Thank you for opening this issue; version 0.0.2 will be available shortly.