tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jean-frederic clere <jfrederic.cl...@fujitsu-siemens.com>
Subject Re: Coyote problems on a EBCDIC machine
Date Thu, 02 Oct 2003 15:51:45 GMT
Clere, Jean-Frederic wrote:
> Remy Maucherat wrote:
> 
>> jean-frederic clere wrote:
>>
>>> Hi,
>>>
>>> I have a funny problem with Coyote: The response body are Ok (in 
>>> ASCII) but the headers are corrupted (probably in EBCDIC). May be 
>>> somewhere I have to tell Coyote to do ASCII instead default encoding.
>>>
>>> Has someone a hint?
>>
>>
>>
>> The header writing is in http11.InternalOutputBuffer. Is something 
>> special needed ?
> 
> 
> Probably some getBytes("ISO-8859-1") instead of getBytes()

Oops...
Mostly in http11/src/java/org/apache/coyote/http11/Constants.java getBytes(char 
encoding) throws execptions so I have to use:
{ (byte) 'a', (byte) 'b' ... };
instead of:
"ab".getBytes();

> 
>>
>> Remy
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>>
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message