commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ulrich Mayring (JIRA)" <>
Subject [jira] Updated: (NET-164) WhoisClient should not use the platform's default Encoding
Date Fri, 20 Jul 2007 13:46:07 GMT


Ulrich Mayring updated NET-164:


FingerClient can now accept encoding as additional parameter. Old method calls new method
with encoding parameter null, so old behavior remains unchanged.

> WhoisClient should not use the platform's default Encoding
> ----------------------------------------------------------
>                 Key: NET-164
>                 URL:
>             Project: Commons Net
>          Issue Type: Improvement
>            Reporter: Ulrich Mayring
>         Attachments:
> Currently the WhoisClient is extending the FingerClient, which sends its request like
> 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.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message