tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem
Date Tue, 18 Oct 2016 21:36:34 GMT
On 18/10/2016 22:29, Mark Juszczec wrote:
> On Oct 18, 2016 4:45 PM, "Mark Juszczec" <mark.juszczec@gmail.com> wrote:
>>
>>
>>
>> On Tue, Oct 18, 2016 at 2:58 PM, Mark Juszczec <mark.juszczec@gmail.com>
> wrote:
>>
>> Converting them to hex I see
>>
>> -61 = FFFFFFFFFFFFFFC3
>>
>> -117 = FFFFFFFFFFFFFF8B
>>
>> I know
>>
>> Ë = 0xC3 0x8B
>>
>> so I'm assuming the Fs are extraneous.
>>
>> However, I'd be much more comfortable with all this if I got
>>
>> 0000000000000000C3
>> 00000000000000008B
>>
>> Is this a weird debugger anomaly or is it an indication something has
>> already screwed up my data?
> 
> I don't know if this is relevant, but I when I saw the values I emailed I
> was in a remote debugging session.
> 
> I was running Spring Tool Suite on Windows (7, I think) and hooking up to
> my app running on Linux centos (7, I think).
> 
> Tomcat and apache are also running on the Linux system.

Java handles bytes as signed (-128 to 127) but the data in the input
stream is unsigned. The additional Fs are an artefact of whatever those
bytes were cast to.

It looks normal to me.

Mark


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


Mime
View raw message