Re: Tomcat 8.5.19 corrupts static text files encoded with UTF-8

2017-07-30 Thread Mark Thomas
t;> encoding-tc9-v1.patch >> >> Tomcat 8.5.x >> http://home.apache.org/~markt/patches/2017-07-30-default-servlet- >> encoding-tc85-v1.patch > > Thank you very much for your fast feedback. I applied the patch for Tomcat > 8.5.x and it seems to fix the issue: Sta

RE: Tomcat 8.5.19 corrupts static text files encoded with UTF-8

2017-07-30 Thread Konstantin Preißer
1.patch Thank you very much for your fast feedback. I applied the patch for Tomcat 8.5.x and it seems to fix the issue: Static text/JavaScript files are served untouched (their encoding is not changed), which means JavaScript files encoded as UTF-8 (without BOM) are working again in the browser.

Re: Tomcat 8.5.19 corrupts static text files encoded with UTF-8

2017-07-30 Thread Mark Thomas
On 30/07/17 10:50, Mark Thomas wrote: > On 30/07/17 10:21, Rémy Maucherat wrote: >> On Sun, Jul 30, 2017 at 10:59 AM, Konstantin Preißer >> wrote: >>> I honestly don't understand that change. As a web developer, I expect a >>> web server to serve static files exactly as-is, without trying to co

Re: Tomcat 8.5.19 corrupts static text files encoded with UTF-8

2017-07-30 Thread Mark Thomas
gt;>> >>>> (...) >>>> >>>> Why would Tomcat want to modify static files, instead of just serving >>>> them as-is? >>> >>> Because Tomcat now checks the response encoding and the file encoding >>> and converts if necess

Re: Tomcat 8.5.19 corrupts static text files encoded with UTF-8

2017-07-30 Thread Rémy Maucherat
mcat want to modify static files, instead of just serving > > >them as-is? > > > > Because Tomcat now checks the response encoding and the file encoding > > and converts if necessary. > > > > You probably want to set the fileEncoding init para

RE: Tomcat 8.5.19 corrupts static text files encoded with UTF-8

2017-07-30 Thread Konstantin Preißer
checks the response encoding and the file encoding > and converts if necessary. > > You probably want to set the fileEncoding init param of the Default servlet to > UTF-8. Thanks. So I set the following parameter in web.xml: fileEncoding utf-8 T

Re: Tomcat 8.5.19 corrupts static text files encoded with UTF-8

2017-07-29 Thread Mark Thomas
On 28 July 2017 21:53:27 BST, "Konstantin Preißer" wrote: >Hi all, > >after quite a while I'm reporting back here, because I faced a problem >after updating to Tomcat 8.5.19: Suddenly, static text files (.txt, .js >etc.) encoded with UTF-8 (without BOM) are getting c

Tomcat 8.5.19 corrupts static text files encoded with UTF-8

2017-07-28 Thread Konstantin Preißer
Hi all, after quite a while I'm reporting back here, because I faced a problem after updating to Tomcat 8.5.19: Suddenly, static text files (.txt, .js etc.) encoded with UTF-8 (without BOM) are getting corrupted when they are served to the browser. This didn't happen with Tomcat 8

Re: does Tomcat 8.5.9 have UTF-8 encoding throughout by default?

2017-01-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 To whom it may concern, On 1/7/17 5:57 PM, modjkl...@comcast.net wrote: > Anyone know if it has UTF-8 encoding throughout out-of-the-box, or > do I need to configure it to be so? > > I'm seeing some headers using iso-8859-1 and I

Re: does Tomcat 8.5.9 have UTF-8 encoding throughout by default?

2017-01-08 Thread tomcat
On 07.01.2017 23:57, modjkl...@comcast.net wrote: Anyone know if it has UTF-8 encoding throughout out-of-the-box, or do I need to configure it to be so? I'm seeing some headers using iso-8859-1 and I'm not sure where they're being generated. Hi. You are not being very expl

does Tomcat 8.5.9 have UTF-8 encoding throughout by default?

2017-01-07 Thread modjklist
Anyone know if it has UTF-8 encoding throughout out-of-the-box, or do I need to configure it to be so? I'm seeing some headers using iso-8859-1 and I'm not sure where they're being generated.

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-20 Thread tomcat
people in charge of the design of the protocol missed a golden opportunity of cleaning this up in HTTP 2.x and making Unicode/UTF-8 the default, instead of clinging to iso-8859-1. Thus condemning all web programmers worldwide to another 20 years of obscure bugs and clunky work-arounds. (s) Andr%C3%A9

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-20 Thread Mark Juszczec
still a big mess in the HTTP protocol. > And the people in charge of the design of the protocol missed a golden > opportunity of cleaning this up in HTTP 2.x and making Unicode/UTF-8 the > default, instead of clinging to iso-8859-1. Thus condemning all web > programmers worldwide to a

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-20 Thread tomcat
called from AjpMessage.appendBytes(MessageBytes) So, I think this explains why my data is being interpreted incorrectly. Now, the question becomes why isn't this line in server.xml: enough to cause ByteChunk.charset to be set to "UTF-8" Does anyone have any thoughts as t

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-19 Thread Mark Juszczec
arset; } I set a breakpoint on ByteChunk.setCharset(Charset) and it is never executed. ByteChunk.getCharset() is called from MessageBytes.toBytes() which is called from AjpMessage.appendBytes(MessageBytes) So, I think this explains why my data is being interpreted incorrectly. Now, the question becomes why isn't this line in server.xml: enough to cause ByteChunk.charset to be set to "UTF-8" Does anyone have any thoughts as to how to proceed?

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread tomcat
of the above characters/bytes sequences look quite like a double UTF-8 encoding took place : - an "Ë", would be encoded in UTF-8 as the 2 bytes 0xc3 0x8b (which seen as ISO-8859-1 bytes/characters, would look like "A tilde" followed by an unprintable control character) - then if y

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Juszczec
On Oct 18, 2016 6:22 PM, "Mark Thomas" wrote: > > I wonder if it is worth a clean install of httpd, mod_jk and Tomcat and > then running a simple test. > > Mark > That would be difficult to justify without more evidence than ive got. Do you know if apache has a test suite I can run against an ex

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Thomas
On 18/10/2016 23:10, Mark Juszczec wrote: > On Oct 18, 2016 5:37 PM, "Mark Thomas" wrote: >> >> >> 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. >

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Juszczec
On Oct 18, 2016 5:37 PM, "Mark Thomas" wrote: > > > 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. That's what i thought but didn't think it would hurt

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Thomas
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 = FFC3 >> >> -117 = FF8B >> >> I know >> >> Ë = 0xC3 0x8B >> >> so I

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Juszczec
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 = FFC3 > > -117 = FF8B > > I know > > Ë = 0xC3 0x8B > > so I'm assuming the Fs are extraneous. > > However, I'd be much mo

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Juszczec
On Tue, Oct 18, 2016 at 2:58 PM, Mark Juszczec wrote: > > > Some questions (if these are not relevant, please disregard): > > I'm loading a whole bunch of modules. Could some of them be incompatible? > > DocumentRoot refers to a directory that does not exist. Is that a problem? > > What does Add

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Juszczec
nguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW ForceLanguagePriority Prefer Fallback TypesConfig /etc/mime.types DefaultType None AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType text/html .shtml A

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Juszczec
On Tue, Oct 18, 2016 at 10:23 AM, André Warnier (tomcat) wrote: > > > Good. That our goal here. We live to help :-) > > You all have been helpful beyond description. > I don't think that there is a need for a formal "petition". This being a > Tomcat list, and the mod_jk Connector being part of t

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread tomcat
On 18.10.2016 16:16, Mark Juszczec wrote: On Tue, Oct 18, 2016 at 10:10 AM, André Warnier (tomcat) wrote: This being a list dedicated to Tomcat, maybe we are going a bit deep in the Apache httpd configuration and precedence rules here. It is anyway difficult to answer your questions, without

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Juszczec
On Tue, Oct 18, 2016 at 10:10 AM, André Warnier (tomcat) wrote: > > This being a list dedicated to Tomcat, maybe we are going a bit deep in > the Apache httpd configuration and precedence rules here. > It is anyway difficult to answer your questions, without seeing the whole > of the Apache httpd

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread tomcat
On 18.10.2016 15:22, Mark Juszczec wrote: On Tue, Oct 18, 2016 at 9:13 AM, Mark Juszczec wrote: DocumentRoot /some/dir/thatDoesNotExist/ JkEnvVar nameWithIntlChar JkMount /myService/* lbAjpWorker JkMount /myService lbAjpWorker I forgot to ask something. The a

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Juszczec
On Tue, Oct 18, 2016 at 9:13 AM, Mark Juszczec wrote: > > > > DocumentRoot /some/dir/thatDoesNotExist/ > JkEnvVar nameWithIntlChar > JkMount /myService/* lbAjpWorker > JkMount /myService lbAjpWorker > > > > I forgot to ask something. The above DocumentRoot does not exist.

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Juszczec
On Tue, Oct 18, 2016 at 8:36 AM, André Warnier (tomcat) wrote: > On 18.10.2016 13:03, Mark Juszczec wrote: >> >> >> No, the following line: >> >> JkOptions +ForwardKeySize +ForwardURIEscaped -ForwardDirectories >> >> is in an Apache conf file, but not in a VirtualHost entry. >> >> Can this direct

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread tomcat
On 18.10.2016 13:03, Mark Juszczec wrote: On Tue, Oct 18, 2016 at 1:14 AM, Rainer Jung wrote: Am 17.10.2016 um 22:38 schrieb Mark Juszczec: I've tried adding +ForwardURIEscaped in my conf file as follows: # JkOptions indicate to send SSL KEY SIZE, JkOptions +ForwardKeySize +ForwardURIEsca

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Juszczec
On Tue, Oct 18, 2016 at 1:14 AM, Rainer Jung wrote: > Am 17.10.2016 um 22:38 schrieb Mark Juszczec: > >> >> >> I've tried adding +ForwardURIEscaped in my conf file as follows: >> >> # JkOptions indicate to send SSL KEY SIZE, >> JkOptions +ForwardKeySize +ForwardURIEscaped -ForwardDirectories >> >

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-17 Thread Rainer Jung
Am 17.10.2016 um 22:38 schrieb Mark Juszczec: On Mon, Oct 17, 2016 at 8:20 AM, Rainer Jung wrote: Am 17.10.2016 um 12:35 schrieb Mark Juszczec: On Mon, Oct 17, 2016 at 4:29 AM, Mark Thomas wrote: A small hint. I'd expect those to be % encoded. Thank you very much for your reply. I've

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-17 Thread Mark Juszczec
On Mon, Oct 17, 2016 at 8:20 AM, Rainer Jung wrote: > Am 17.10.2016 um 12:35 schrieb Mark Juszczec: > >> On Mon, Oct 17, 2016 at 4:29 AM, Mark Thomas wrote: >> >> >>> A small hint. I'd expect those to be % encoded. >>> >>> >> Thank you very much for your reply. >> >> I've been thinking the probl

Re: Is UTF-8 used everywhere for Tomcat 8.5.6?

2016-10-17 Thread Konstantin Kolinko
/2016-10-17 19:59 GMT+03:00 R : > Hi, > > I have a default installation of Tomcat 8.5.6. When I make a POST request > with a tilde character, and the encoding is set to UTF-8, it seems that my > servlet handler is decoding it incorrectly. I have to set the character &g

Re: Is UTF-8 used everywhere for Tomcat 8.5.6?

2016-10-17 Thread Mark Thomas
On 17/10/2016 17:59, R wrote: > Hi, > > I have a default installation of Tomcat 8.5.6. When I make a POST request > with a tilde character, and the encoding is set to UTF-8, it seems that my > servlet handler is decoding it incorrectly. The tilde character should not need to be en

Is UTF-8 used everywhere for Tomcat 8.5.6?

2016-10-17 Thread R
Hi, I have a default installation of Tomcat 8.5.6. When I make a POST request with a tilde character, and the encoding is set to UTF-8, it seems that my servlet handler is decoding it incorrectly. I have to set the character encoding on the HttpServletRequest parameter to decode properly, example

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-17 Thread Rainer Jung
ith the message "ajp_connection_tcp_send_message::jk_ajp_common.c (1208): sending to ajp13 pos=4 len=1411 max=8192" (at ajp_connection_tcp_send_message::jk_ajp_common.c) shows them to be: 41 4f c3 8b 4c AFAIK this means the correct bytes are being sent to AJP. Is that correct? That

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-17 Thread Mark Juszczec
4 len=1411 max=8192" (at > >> ajp_connection_tcp_send_message::jk_ajp_common.c) shows them to be: > >> > >> 41 4f c3 8b 4c > >> > >> AFAIK this means the correct bytes are being sent to AJP. Is that > correct? > > > > That is the

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-17 Thread Mark Thomas
the bytes with the message >> >> "ajp_connection_tcp_send_message::jk_ajp_common.c (1208): sending to ajp13 >> pos=4 len=1411 max=8192" (at >> ajp_connection_tcp_send_message::jk_ajp_common.c) shows them to be: >> >> 41 4f c3 8b 4c >> >> AFAI

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-17 Thread Mark Thomas
ajp_common.c (1208): sending to ajp13 > pos=4 len=1411 max=8192" (at > ajp_connection_tcp_send_message::jk_ajp_common.c) shows them to be: > > 41 4f c3 8b 4c > > AFAIK this means the correct bytes are being sent to AJP. Is that correct? That is the correct UTF-8 byte encoding for th

Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-16 Thread Mark Juszczec
oyoteAdapter.process() is invoked I have UTF-8 specified as URIEncoding in ajp and it has had no effect. Ive also specified useBodyEncodingForURI as true with no effect. Conventional wisdom says the data is getting inadvertently as ISO-8859-1 somewhere along the line. Since the data is correct

Re: How to set tomcat 8.0.20 container character encoding of request and response to UTF-8 intead of ISO-8859-1

2016-02-17 Thread David kerber
Akshat, On 2/16/16 7:08 AM, Akshat Tandon wrote: We need to set tomcat 8.0.20 container character encoding of request and response to UTF-8 intead of ISO-8859-1 , What is the setting for the same ? We tried setting as mentioned below , https://wiki.apache.org/tomcat/FAQ/CharacterEnco

Re: How to set tomcat 8.0.20 container character encoding of request and response to UTF-8 intead of ISO-8859-1

2016-02-16 Thread Akshat Tandon
oding *Thanks and RegardsAkshat Tandon* On Tue, Feb 16, 2016 at 8:13 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > Akshat, > > On 2/16/16 7:08 AM, Akshat Tandon wrote: > > We need to set tomcat 8.0.20 container character encoding of request and > > resp

Re: How to set tomcat 8.0.20 container character encoding of request and response to UTF-8 intead of ISO-8859-1

2016-02-16 Thread Christopher Schultz
Akshat, On 2/16/16 7:08 AM, Akshat Tandon wrote: > We need to set tomcat 8.0.20 container character encoding of request and > response to UTF-8 intead of ISO-8859-1 , > > What is the setting for the same ? > > We tried setting as mentioned below , > https://wiki.

How to set tomcat 8.0.20 container character encoding of request and response to UTF-8 intead of ISO-8859-1

2016-02-16 Thread Akshat Tandon
We need to set tomcat 8.0.20 container character encoding of request and response to UTF-8 intead of ISO-8859-1 , What is the setting for the same ? We tried setting as mentioned below , https://wiki.apache.org/tomcat/FAQ/CharacterEncoding#Q1 But that requires creating filter etc . Is there

Re: [OT] Tomcat 8 encoding issues: unable to change the default encoding iso-8859-1 to utf-8 in http header

2015-01-26 Thread Terence M. Bandoian
On 1/25/2015 4:29 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 1/24/15 7:52 AM, André Warnier wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, ... Morality : in web applications, always specify the conten

Re: [OT] Tomcat 8 encoding issues: unable to change the default encoding iso-8859-1 to utf-8 in http header

2015-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 1/24/15 7:52 AM, André Warnier wrote: > Christopher Schultz wrote: >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 >> >> André, >> > ... > >> >>> Morality : in web applications, always specify the >>> content-type (and character set

Re: [OT] Tomcat 8 encoding issues: unable to change the default encoding iso-8859-1 to utf-8 in http header

2015-01-24 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: [OT] Tomcat 8 encoding issues: unable to change the default encoding iso-8859-1 to utf-8 in http header German has its own confusing quirks. I always liked Schmetterling; the sound is so counter-indicative

RE: [OT] Tomcat 8 encoding issues: unable to change the default encoding iso-8859-1 to utf-8 in http header

2015-01-24 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: [OT] Tomcat 8 encoding issues: unable to change the default > encoding iso-8859-1 to utf-8 in http header > German has its own confusing quirks. I always liked Schmetterling; the sound is so counter-indicative of the ac

Re: [OT] Tomcat 8 encoding issues: unable to change the default encoding iso-8859-1 to utf-8 in http header

2015-01-24 Thread André Warnier
Martin Knoblauch wrote: On Sat, Jan 24, 2015 at 1:52 PM, André Warnier wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, ... Morality : in web applications, always specify the content-type (and character set, if applicable) of what you are retur

Re: [OT] Tomcat 8 encoding issues: unable to change the default encoding iso-8859-1 to utf-8 in http header

2015-01-24 Thread Martin Knoblauch
On Sat, Jan 24, 2015 at 1:52 PM, André Warnier wrote: > Christopher Schultz wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA256 >> >> André, >> >> ... > > >> Morality : in web applications, always specify the content-type >>> (and character set, if applicable) of what you are returni

Re: [OT] Tomcat 8 encoding issues: unable to change the default encoding iso-8859-1 to utf-8 in http header

2015-01-24 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, ... Morality : in web applications, always specify the content-type (and character set, if applicable) of what you are returning. To André: the word you are looking for is "Moral", not "Morality". A "moral"

[OT] Re: Tomcat 8 encoding issues: unable to change the default encoding iso-8859-1 to utf-8 in http header

2015-01-23 Thread Mark Thomas
On 23/01/2015 21:16, Christopher Schultz wrote: > David, > > On 1/23/15 8:26 AM, David kerber wrote: >> On 1/23/2015 5:04 AM, André Warnier wrote: >>> A part of what I wanted to say in my original answer, is that >>> just by taking the time to actually think about the problem you >>> are having, a

Re: Tomcat 8 encoding issues: unable to change the default encoding iso-8859-1 to utf-8 in http header

2015-01-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 David, On 1/23/15 8:26 AM, David kerber wrote: > On 1/23/2015 5:04 AM, André Warnier wrote: >> A part of what I wanted to say in my original answer, is that >> just by taking the time to actually think about the problem you >> are having, and writin

Re: Tomcat 8 encoding issues: unable to change the default encoding iso-8859-1 to utf-8 in http header

2015-01-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 1/23/15 5:04 AM, André Warnier wrote: > It was actually a good question, and a good explanation of your > problem. Bonus points for that. That you found the solution > yourself afterward, and communicated this to the list, are two > additi

Re: Tomcat 8 encoding issues: unable to change the default encoding iso-8859-1 to utf-8 in http header

2015-01-23 Thread David kerber
On 1/23/2015 5:04 AM, André Warnier wrote: A part of what I wanted to say in my original answer, is that just by taking the time to actually think about the problem you are having, and writing down a clear explanation for someone else, you often find the solution yourself. Add in the exercise o

Re: Tomcat 8 encoding issues: unable to change the default encoding iso-8859-1 to utf-8 in http header

2015-01-23 Thread André Warnier
to get the minimal setting which would help, some of the things I found is that few of the jsp pages itself was encoded differently and not utf-8 and once I fixed that it do not completely worked. After lots of trial and error, Two settings which worked for me are by adding contenttype tag in

RE: Tomcat 8 encoding issues: unable to change the default encoding iso-8859-1 to utf-8 in http header

2015-01-23 Thread Prabhu Mannu
the things I found is that few of the jsp pages itself was encoded differently and not utf-8 and once I fixed that it do not completely worked. After lots of trial and error, Two settings which worked for me are by adding contenttype tag in jsp page <%@ page contentType="text/html; chars

Re: Tomcat 8 encoding issues: unable to change the default encoding iso-8859-1 to utf-8 in http header

2015-01-23 Thread André Warnier
e.org Subject: Tomcat 8 encoding issues: unable to change the default encoding iso-8859-1 to utf-8 in http header Hi all, Firs off Sorry if this question appears too noob. Currently in my application I get this warning. HTML1114: Codepage iso-8859-1 from (HTTP header) overrides conflicting cod

RE: Tomcat 8 encoding issues: unable to change the default encoding iso-8859-1 to utf-8 in http header

2015-01-22 Thread Prabhu Mannu
users@tomcat.apache.org Subject: Tomcat 8 encoding issues: unable to change the default encoding iso-8859-1 to utf-8 in http header Hi all, Firs off Sorry if this question appears too noob. Currently in my application I get this warning. HTML1114: Codepage iso-8859-1 from (HTTP header) over

Tomcat 8 encoding issues: unable to change the default encoding iso-8859-1 to utf-8 in http header

2015-01-22 Thread Prabhu Mannu
Hi all, Firs off Sorry if this question appears too noob. Currently in my application I get this warning. HTML1114: Codepage iso-8859-1 from (HTTP header) overrides conflicting codepage utf-8 from (META tag) File: index.action Application uses struts 2, spring, hibernate, jpa + tiles 3

Re: UTF-8 encoded request URI

2014-09-03 Thread Igal @ getRailo.org
On 9/3/2014 4:52 AM, Mark Thomas wrote: On 03/09/2014 12:45, Lulseged Zerfu wrote: Hi I am getting bad request from tomcat when I send UTF-8 encoded request to my application. I have configured connector in my server.xml with URIEncoding=”UTF-8”. I have set charset in the request to UTF-8

Re: UTF-8 encoded request URI

2014-09-03 Thread Mark Thomas
On 03/09/2014 12:45, Lulseged Zerfu wrote: > Hi I am getting bad request from tomcat when I send UTF-8 encoded > request to my application. I have configured connector in my > server.xml with URIEncoding=”UTF-8”. I have set charset in the > request to UTF-8. How can I solve 400

Re: UTF-8 encoded request URI

2014-09-03 Thread Daniel Mikusa
On Wed, Sep 3, 2014 at 7:45 AM, Lulseged Zerfu wrote: > Hi I am getting bad request from tomcat when I send UTF-8 encoded request > to my application. Can you give an example of the request? Are the non-ascii characters in the URL or in the payload of your request (or both)? &g

Re: UTF-8 encoded request URI

2014-09-03 Thread André Warnier
Lulseged Zerfu wrote: Hi I am getting bad request from tomcat when I send UTF-8 encoded request to my application. I have configured connector in my server.xml with URIEncoding=”UTF-8”. I have set charset in the request to UTF-8. How can I solve 400 Bad request? How can I tell tomcat to

UTF-8 encoded request URI

2014-09-03 Thread Lulseged Zerfu
Hi I am getting bad request from tomcat when I send UTF-8 encoded request to my application. I have configured connector in my server.xml with URIEncoding=”UTF-8”. I have set charset in the request to UTF-8. How can I solve 400 Bad request? How can I tell tomcat to decode request URI instead

Re: [slightly OT] FORM based authentication and utf-8 encoding of credentials

2013-07-02 Thread André Warnier
Shanti Suresh wrote: Greetings, On Wed, Jun 26, 2013 at 4:08 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, But, even when sending UTF-8 encoded data according to this principle, they are *not* indicating that

Re: [slightly OT] FORM based authentication and utf-8 encoding of credentials

2013-07-02 Thread Shanti Suresh
Greetings, On Wed, Jun 26, 2013 at 4:08 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > André, > > > > > But, even when sending UTF-8 encoded data according to this > > principle, the

Re: [slightly OT] FORM based authentication and utf-8 encoding of credentials

2013-06-26 Thread Christopher Schultz
- TAXI 2012-10-09 09:03:59 PDT >> >> Wow, no fix since 8 years... >> >> And this is a real bug: If the HTTP header says the file is >> encoded in ISO-8859-1 the common way to override this with HTML >> is: >> >> >> >> Firef

Re: [slightly OT] FORM based authentication and utf-8 encoding of credentials

2013-06-26 Thread Christopher Schultz
gt; > Wow, no fix since 8 years... > > And this is a real bug: If the HTTP header says the file is encoded > in ISO-8859-1 the common way to override this with HTML is: > > > > Firefox reads the body in UTF-8 then, which is fine, but the > charset used in forms is still IS

Re: [slightly OT] FORM based authentication and utf-8 encoding of credentials

2013-06-26 Thread Konstantin Kolinko
2013/6/26 Shanti Suresh : > Hi Chris, > > This is such an interesting discussion. I am not sure what to make of this > person's comment: > > --- > TAXI 2012-10-09 09:03:59 PDT > > Wow, no fix since 8 years... > > And this is a real bug: If the HTTP header says the file is encoded

Re: [slightly OT] FORM based authentication and utf-8 encoding of credentials

2013-06-26 Thread André Warnier
1 the common way to override this with HTML is: Firefox reads the body in UTF-8 then, which is fine, but the charset used in forms is still ISO-8859-1, so you have to add accept-charset="utf-8" to the form just for firefox (other browser automatically use UTF-8 or send the charset with t

Re: [slightly OT] FORM based authentication and utf-8 encoding of credentials

2013-06-26 Thread Shanti Suresh
rride this with HTML is: Firefox reads the body in UTF-8 then, which is fine, but the charset used in forms is still ISO-8859-1, so you have to add accept-charset="utf-8" to the form just for firefox (other browser automatically use UTF-8 or send the charset with the content-type). So:

Re: [slightly OT] FORM based authentication and utf-8 encoding of credentials

2013-06-26 Thread Christopher Schultz
g as: >>>>> >>>>> POST http://localhost:70/myapp/j_security_check HTTP/1.1 >>>>> Content-Type: application/x-www-form-urlencoded >>>>> >>>>> j_username=p&j_password=%C5%BDe%C5%BEUli%C4%8Dka.1 >>> The browser is

Re: FORM based authentication and utf-8 encoding of credentials

2013-06-26 Thread Christopher Schultz
> POST http://localhost:70/myapp/j_security_check HTTP/1.1 >>>> Content-Type: application/x-www-form-urlencoded >>>> >>>> j_username=p&j_password=%C5%BDe%C5%BEUli%C4%8Dka.1 >> The browser is not sending that correctly. The password is UTF-8 >> encoded b

Re: [slightly OT] FORM based authentication and utf-8 encoding of credentials

2013-06-26 Thread André Warnier
C4%8Dka.1 The browser is not sending that correctly. The password is UTF-8 encoded but the Content-Type fails to specify the character set used. It it did, Tomcat would treat the password as UTF-8. This is a common failing of browsers and is covered in the FAQ. [1] Well I have tried IE, Firefox

Re: FORM based authentication and utf-8 encoding of credentials

2013-06-26 Thread Jan Vávra
browser is not sending that correctly. The password is UTF-8 encoded but the Content-Type fails to specify the character set used. It it did, Tomcat would treat the password as UTF-8. This is a common failing of browsers and is covered in the FAQ. [1] Well I have tried IE, Firefox, Chrome. N

Re: FORM based authentication and utf-8 encoding of credentials

2013-06-24 Thread Mark Thomas
orrectly this string as: >> >> POST http://localhost:70/myapp/j_security_check HTTP/1.1 >> Content-Type: application/x-www-form-urlencoded >> >> j_username=p&j_password=%C5%BDe%C5%BEUli%C4%8Dka.1 The browser is not sending that correctly. The password is UTF-8 encoded

Re: FORM based authentication and utf-8 encoding of credentials

2013-06-24 Thread Jan Vávra
length is 14. And that corresponds to the fact that in credentials is stored some form of utf-8 encoding. Utf-8 encoding string "ŽežUlička.1" has length 14. +1 for each letter: Ž,ž,č. Jan. Where do you store your login/password : DB ? xml file ? encrypted i

RE:FORM based authentication and utf-8 encoding of credentials

2013-06-24 Thread Eugène Adell
Where do you store your login/password : DB ? xml file ? encrypted in xml file ? De : Jan Vávra [va...@602.cz] Envoyé : lundi 24 juin 2013 13:36 À : Tomcat Users List Objet : FORM based authentication and utf-8 encoding of credentials Hello, I&#

FORM based authentication and utf-8 encoding of credentials

2013-06-24 Thread Jan Vávra
://localhost:70/myapp/j_security_check HTTP/1.1 Content-Type: application/x-www-form-urlencoded j_username=p&j_password=%C5%BDe%C5%BEUli%C4%8Dka.1 The first letter "Ž" is really encoded in the utf-8 as bytes in hexa C5, BD. But in the method public Principal authenticate(String usern

Re: another UTF-8 problem

2010-08-26 Thread Tim-Christian Mundt
Thanks for your responses. The problem was not the response from the web service. Something must have been completely mixed up. I set the Java option -Dfile.encoding to utf-8 which solved the write to file problem and also put this in the code: if (req.getCharacterEncoding() == null

Re: another UTF-8 problem

2010-08-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, On 8/24/2010 9:06 AM, Tim-Christian Mundt wrote: > I've encountered a UTF-8 problem and yes, URIEncoding="UTF-8" is set. If you're connecting-out to a SOAP service, then the URIEncoding setting doesn't matter. >

Re: another UTF-8 problem

2010-08-24 Thread Tim-Christian Mundt
Caldarale, Charles R schrieb: From: Tim-Christian Mundt [mailto:d...@tim-erwin.de] Subject: another UTF-8 problem I've encountered a UTF-8 problem and yes, URIEncoding="UTF-8" is set. Tomcat version? Using APR or not? JVM version? Platform? Default locale setting?

RE: another UTF-8 problem

2010-08-24 Thread Caldarale, Charles R
> From: Tim-Christian Mundt [mailto:d...@tim-erwin.de] > Subject: another UTF-8 problem > > I've encountered a UTF-8 problem and yes, URIEncoding="UTF-8" is set. Tomcat version? Using APR or not? JVM version? Platform? Default locale setting? - Chuck THI

another UTF-8 problem

2010-08-24 Thread Tim-Christian Mundt
Hi, I've encountered a UTF-8 problem and yes, URIEncoding="UTF-8" is set. I'm connecting to a web service which returns UTF-8 encoded data. If I do so from a plain, regular, self-contained Java application everything is fine. However, if I run the same classes in tom

Re: UTF-8 encoding in Tomcat 6.0 fixed

2010-08-05 Thread michel
- Original Message - From: "André Warnier" To: "Tomcat Users List" Sent: Tuesday, August 03, 2010 5:30 PM Subject: Re: UTF-8 encoding in Tomcat 6.0 fixed michel wrote: - Original Message - From: "michel" To: "Tomcat Users List"

Re: UTF-8 encoding in Tomcat 6.0

2010-08-04 Thread Christopher Schultz
type case - without the > filter, they will be mangled as ISO-8859-1. If this is different from > previous behaviour, maybe I should report a bug. It works perfectly well for me when using URIEncoding="UTF-8". The Content-Type of the request is never consulted for any reason in th

Re: UTF-8 encoding in Tomcat 6.0 fixed

2010-08-03 Thread André Warnier
michel wrote: - Original Message - From: "michel" To: "Tomcat Users List" Sent: Tuesday, August 03, 2010 1:08 PM Subject: Re: UTF-8 encoding in Tomcat 6.0 - Original Message - From: "michel" To: "Tomcat Users List" Sent: Tuesday,

Re: UTF-8 encoding in Tomcat 6.0 fixed

2010-08-03 Thread michel
- Original Message - From: "michel" To: "Tomcat Users List" Sent: Tuesday, August 03, 2010 1:08 PM Subject: Re: UTF-8 encoding in Tomcat 6.0 - Original Message - From: "michel" To: "Tomcat Users List" Sent: Tuesday, August 03,

Re: UTF-8 encoding in Tomcat 6.0

2010-08-03 Thread michel
- Original Message - From: "michel" To: "Tomcat Users List" Sent: Tuesday, August 03, 2010 9:35 AM Subject: Re: UTF-8 encoding in Tomcat 6.0 I am having a simmilar problem with Tomcat Version 6.0.26. I have a JSP with some french characters that run quite well

Re: UTF-8 encoding in Tomcat 6.0

2010-08-03 Thread Mark Thomas
and regards > Arun > > --- On Tue, 8/3/10, Mark Thomas wrote: > >> From: Mark Thomas >> Subject: Re: UTF-8 encoding in Tomcat 6.0 >> To: "Tomcat Users List" >> Date: Tuesday, August 3, 2010, 7:25 AM >> On 03/08/2010 12:18, arun kumar >> wrote

Re: UTF-8 encoding in Tomcat 6.0

2010-08-03 Thread arun kumar
?mydata=%d8 again ? is displayed Thanks and regards Arun --- On Tue, 8/3/10, Mark Thomas wrote: > From: Mark Thomas > Subject: Re: UTF-8 encoding in Tomcat 6.0 > To: "Tomcat Users List" > Date: Tuesday, August 3, 2010, 7:25 AM > On 03/08/2010 12:18, arun kumar >

RE: UTF-8 encoding in Tomcat 6.0

2010-08-03 Thread Martin Gainty
works in Tomcat 6.0.20 http://localhost:8007/sampleweb/params?test=%D8 log output Servlet init IN doFilterUTF-8 Ø U+00D8 Ø c3 98 LATIN CAPITAL LETTER O WITH STROKE http://www.utf8-chartable.de/unicode-utf8-table.pl ? Martin __ do not alter

Re: UTF-8 encoding in Tomcat 6.0

2010-08-03 Thread michel
iginal Message - From: "Mark Thomas" To: "Tomcat Users List" Sent: Tuesday, August 03, 2010 7:25 AM Subject: Re: UTF-8 encoding in Tomcat 6.0 On 03/08/2010 12:18, arun kumar wrote: Am i sending some parameter wrongly? Probably. Go back and read what I

Re: UTF-8 encoding in Tomcat 6.0

2010-08-03 Thread Mark Thomas
On 03/08/2010 12:18, arun kumar wrote: > Am i sending some parameter wrongly? Probably. Go back and read what I wrote about the test JSP on the wiki and see if that works. Mark - To unsubscribe, e-mail: users-unsubscr...@tomc

Re: UTF-8 encoding in Tomcat 6.0

2010-08-03 Thread arun kumar
T but not for GET. Am i sending some parameter wrongly? Thanks and Regards Arun --- On Sun, 8/1/10, Mark Thomas wrote: > From: Mark Thomas > Subject: Re: UTF-8 encoding in Tomcat 6.0 > To: "Tomcat Users List" > Date: Sunday, August 1, 2010, 5:05 AM > On 31/07/2010 17:34,

Re: UTF-8 encoding in Tomcat 6.0

2010-08-01 Thread Mark Thomas
problem. Tomcat does not behave the way you describe. A clean Tomcat install with no other components (reverse proxy etc) using the test encoding JSP from the wiki [1] works correctly with POST and GET (if URIEncoding="UTF-8" is used). > Sorry Mark - i did not get what you said. Could

Re: UTF-8 encoding in Tomcat 6.0

2010-07-31 Thread arun kumar
many forums. I believe this is the same behavior that Erik reports. Sorry Mark - i did not get what you said. Could you please elaborate? Regards Arun --- On Sat, 7/31/10, Mark Thomas wrote: > From: Mark Thomas > Subject: Re: UTF-8 encoding in Tomcat 6.0 > To: "Tomcat Users

Re: UTF-8 encoding in Tomcat 6.0

2010-07-31 Thread Mark Thomas
eb container from what i can see. > > 3. To my application if i pass a UTF-8 encoded value in hex e.g: > http://://param=%xx... > > Then %xx is not decoded properly. I initially used to send the request with a > mozilla browser but later started sending it with a java program as well

  1   2   3   >