In Httpclient there is a Static class primarily for the use of converting byte[]'s to ASCII strings and for returning a default encoding when the reqeuested encoding is not supported.

Here is an example of the file:

http://jakarta.apache.org/commons/httpclient/xref/org/apache/commons/httpclient/HttpConstants.html

Are there other areas of the Commons where this sort of functionality is required? Perhapse this is would be a useful addition to [lang] String or CharSet Utilities?

or

Is there a more elegant way that the lang CharSetUtils could be applied to this case?

I say this primarily because I've had to use it in codec-multipart to support the the String conversion there.

http://cvs.apache.org/viewcvs.cgi/jakarta-commons-sandbox/codec-multipart/src/java/org/apache/commons/codec/multipart/util/Constants.java?rev=1.1&view=markup

A more generic (and reusable) solution might be ssomething wise to apply here.

Cheers,
Mark

--
Mark Diggory
Software Developer
Harvard MIT Data Center
http://osprey.hmdc.harvard.edu

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to