You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Rory Winston (JIRA)" <ji...@apache.org> on 2008/02/18 00:08:34 UTC

[jira] Resolved: (NET-164) WhoisClient should not use the platform's default Encoding

     [ https://issues.apache.org/jira/browse/NET-164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rory Winston resolved NET-164.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0

> WhoisClient should not use the platform's default Encoding
> ----------------------------------------------------------
>
>                 Key: NET-164
>                 URL: https://issues.apache.org/jira/browse/NET-164
>             Project: Commons Net
>          Issue Type: Improvement
>            Reporter: Ulrich Mayring
>             Fix For: 2.0
>
>         Attachments: FingerClient.java
>
>
> Currently the WhoisClient is extending the FingerClient, which sends its request like so:
> output = new DataOutputStream(new BufferedOutputStream(_output_, 1024));
> output.writeBytes(__query.toString());
> This obviously uses the platform's default encoding, which may be workable for Finger requests, but today's Whois services oftentimes support foreign characters via some IDN scheme and therefore usually run under utf-8. It should therefore either be configurable which encoding is used for the request, or, alternatively, the query interface should be changed to not accept strings, but only bytes. Then it's the client's responsibility to do the appropriate thing.
> As it is now, there is no way to use this WhoisClient for IDN-aware Whois registries.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.