whoiser icon indicating copy to clipboard operation
whoiser copied to clipboard

Add "encoding" option

Open tpimh opened this issue 1 year ago • 4 comments

Q A
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #104
License MIT

How I use it is, if the response can contain special characters in an 8 bit encoding, I set "encoding" to "binary". This is similar to how node-whois module does it. It can be considered a new feature, but I don't think it's significant enough.

tpimh avatar Jul 24 '23 07:07 tpimh

hey @tpimh thanks for adding this, it looks like a helpful option. It will be merged and included in the next release.

Can you add the option in the readme as well please? Maybe others would need this option too, and is easier to see it there. And possibly a test, if you know which whois server returns data in this way?

Thanks

AndreiIgna avatar Aug 02 '23 09:08 AndreiIgna

Sure, I will be happy to add the option to readme and write a test for the server that I am using it with.

tpimh avatar Aug 02 '23 12:08 tpimh

@tpimh the encoding option is set only for whoisQuery function, so it can't be used for a domain or tld query

AndreiIgna avatar Oct 19 '23 19:10 AndreiIgna

Yes, that's correct. That is something I have noticed when writing documentation, so I will be changing this and updating this pull request.

tpimh avatar Oct 20 '23 08:10 tpimh