On 04/01/2013 19:58, Konstantin Kolinko wrote: > 2013/1/4 Brian Burch <br...@pingtoo.com>: >> On 29/11/12 16:11, Brian Burch wrote:
>> Once I got there, I discovered that org.apache.catalina.util.Base64 doesn't >> currently have any methods to decode a StringReader or String object. > > HTTP headers are converted from bytes to characters using ISO-8859-1 > encoding. (Actually they should be 7-bit ASCII). This conversion is > reversible. > > If all you need it for is a test method, I think I would just convert > the string to bytes and use the existing API. Do you need to support > a Reader there? Even in non-test code I'd be tempted to at least start with that approach. Anything that handles String is going to have to convert to bytes anyway. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org