Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3A30D200BA6 for ; Tue, 18 Oct 2016 23:37:44 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 38EE7160AE5; Tue, 18 Oct 2016 21:37:44 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7A58D160ACE for ; Tue, 18 Oct 2016 23:37:43 +0200 (CEST) Received: (qmail 83968 invoked by uid 500); 18 Oct 2016 21:37:41 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 83958 invoked by uid 99); 18 Oct 2016 21:37:41 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2016 21:37:41 +0000 Received: from [192.168.23.9] (host86-152-77-89.range86-152.btcentralplus.com [86.152.77.89]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 627271A00D9 for ; Tue, 18 Oct 2016 21:37:41 +0000 (UTC) Subject: Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem To: Tomcat Users List References: From: Mark Thomas Message-ID: <83e23e92-345d-24fc-6cc4-caae5787188b@apache.org> Date: Tue, 18 Oct 2016 22:36:34 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit archived-at: Tue, 18 Oct 2016 21:37:44 -0000 On 18/10/2016 22:29, Mark Juszczec wrote: > On Oct 18, 2016 4:45 PM, "Mark Juszczec" wrote: >> >> >> >> On Tue, Oct 18, 2016 at 2:58 PM, Mark Juszczec > 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