Eclipse freezes with Tomcat using request-character-encoding

2019-01-28 Thread Garret Wilson
generate a lot of errors. I won't include the whole stack trace here, but it stems from:     org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature 'request-character-encoding' not found. I've filed [Eclipse Bug 543377](https://bugs.eclipse.org/bugs/show_bug.cgi?id=5433

Re: Character encoding problems using jsp:include with jsp:param in Tomcat 8.5 only.

2018-11-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Thorsten, On 11/27/18 04:48, Thorsten Schöning wrote: > Guten Tag Christopher Schultz, am Montag, 26. November 2018 um > 16:07 schrieben Sie: > >> web.xml - --- >> UTF-8 >> > > Tested that with Tomcat 9 and this setting fixed my problem th

Re: Character encoding problems using jsp:include with jsp:param in Tomcat 8.5 only.

2018-11-27 Thread Thorsten Schöning
Guten Tag Christopher Schultz, am Montag, 26. November 2018 um 16:07 schrieben Sie: > web.xml > - --- > > UTF-8 > Tested that with Tomcat 9 and this setting fixed my problem the same as using SetCharacterEncodingFilter. It doesn't work in Tomcat 8.5, I guess because that simply doesn't im

Re: Character encoding problems using jsp:include with jsp:param in Tomcat 8.5 only.

2018-11-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Thorsten, On 11/26/18 08:45, Thorsten Schöning wrote: > Hi all, > > I'm currently testing migration of a legacy web app from Tomcat 7 > to 8 to 8.5 and ran into problems regarding character encoding in > 8.5 only. That ap

Character encoding problems using jsp:include with jsp:param in Tomcat 8.5 only.

2018-11-26 Thread Thorsten Schöning
Hi all, I'm currently testing migration of a legacy web app from Tomcat 7 to 8 to 8.5 and ran into problems regarding character encoding in 8.5 only. That app uses JSP pages and declares all of those to be stored in UTF-8, does really do so :-), and declares a HTTP-Content type of "

Re: Jsp character encoding configuration

2017-02-23 Thread Lazar Kirchev
Thanks Mark! Here it is: https://bz.apache.org/bugzilla/show_bug.cgi?id=60769 On Tue, Feb 21, 2017 at 9:49 PM, Mark Thomas wrote: > On 18/02/2017 16:32, Lazar Kirchev wrote: > > I noticed something else strange. If in an jspx file I declare one and > > the same encoding (in my case Windows-1252)

Re: Jsp character encoding configuration

2017-02-21 Thread Mark Thomas
On 18/02/2017 16:32, Lazar Kirchev wrote: > I noticed something else strange. If in an jspx file I declare one and > the same encoding (in my case Windows-1252) in both the XML prolog and > the page directive pageEncoding property, on Tomcat 8.5.11 I get the > error message: > "Page-encoding specif

Re: Jsp character encoding configuration

2017-02-18 Thread Lazar Kirchev
I noticed something else strange. If in an jspx file I declare one and the same encoding (in my case Windows-1252) in both the XML prolog and the page directive pageEncoding property, on Tomcat 8.5.11 I get the error message: "Page-encoding specified in XML prolog (UTF-8) is different from that spe

Jsp character encoding configuration

2017-02-18 Thread Lazar Kirchev
Hello, According to the JSP 2.3 spec, section 3.3.4 (Declaring page encodings): "It is also a translation-time error to name different encodings in the prolog / text declaration of the document in XML syntax and in a JSP configuration element matching the document. It is legal to name the same enc

Re: Character encoding issue in URL

2017-01-25 Thread Christopher Schultz
.pdf > > > I've reviewed this wiki page: > > > https://wiki.apache.org/tomcat/FAQ/CharacterEncoding > > > And it seems to imply that I shouldn't have to do anything, and the > URL request should return properly. > > > So my question is, what

Character encoding issue in URL

2017-01-24 Thread Justin Dang
estion is, what do I need to configure in Apache Tomcat to handle the character encoding request like IIS does?

Re: Character encoding issues

2016-08-24 Thread Christopher Schultz
only work with the value you've got there... don't try to mess with that! :) FWIW, the system properties of each JVM are somewhat interesting, but probably won't help you debug anything. It might not even fix anything. Every HTTP request/response is defined to have a character encoding:

Re: Character encoding issues

2016-08-24 Thread James H. H. Lampert
On 8/24/16, 12:36 PM, Mark Thomas wrote: At a guess, something in the web application is using the platform default encoding rather than an explicit encoding. Given that the Linux box is OK, it looks like the app should be explicitly using UTF-8 everywhere. Based on a response I got on the Mid

Re: Character encoding issues

2016-08-24 Thread Mark Thomas
On 24/08/2016 17:43, James H. H. Lampert wrote: > Ladies and Gentlemen of the Tomcat and Midrange-Java communities: > > We're having a weird problem with character encoding in a Tomcat webapp. > > We've added an interface to GMail to our webapp, and we've got,

Character encoding issues

2016-08-24 Thread James H. H. Lampert
Ladies and Gentlemen of the Tomcat and Midrange-Java communities: We're having a weird problem with character encoding in a Tomcat webapp. We've added an interface to GMail to our webapp, and we've got, just for our own development, testing, and production use, instances

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
o set request and response character encoding I think what Chris is saying is that you don't need to do any coding with the filter, just configure it. *Thanks and RegardsAkshat Tandon* On Tue, Feb 16, 2016 at 8:13 PM, Christopher Schultz < ch...@christopherschultz.net> wrote:

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
Thanks Chris for the response, Basically we don't want to do coding around the filter as it will also bring us an additional overhead of maintaining the code and follow the quality process , Ideally we want say some setting to say in server.xml to set request and response character enc

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: POST data (single character) cleared when using tomcat 6.0.33 and Character Encoding Filter

2012-02-06 Thread kitagawa
> FYI: The same issue reported against 5.5.35: > https://issues.apache.org/bugzilla/show_bug.cgi?id=52579 > > Thank you for your research. I think you are right. Though I am not > sure how much this can be fixed in Tomcat now. Thank you for your responses. We were able to find the reason for the

Re: POST data (single character) cleared when using tomcat 6.0.33 and Character Encoding Filter

2012-02-02 Thread Konstantin Kolinko
cc: dev 2012/1/23 kitagawa : >> >> While developing using ubuntu 11.04, tomcat 6.0.33 and java 1.5 I ran >> into a problem after setting the character encoding filter for >> requests. >> When posting a request, the value of any field with only a single >> cha

Re: POST data (single character) cleared when using tomcat 6.0.33 and Character Encoding Filter

2012-01-22 Thread kitagawa
Thank you for your response I read the FAQ and wasn't able to find a solution to the problem. I researched it some more and found a bug in Java 1.5 in java.nio.charset.Charset.decode() that might be the cause. A ticket was submitted regarding a similar problem to sun in 2004 http://bugs.sun.com/b

Re: POST data (single character) cleared when using tomcat 6.0.33 and Character Encoding Filter

2012-01-15 Thread Konstantin Kolinko
2012/1/16 kitagawa : > Hi, I'm new to this but please direct me if I'm posting to the wrong list. > > While developing using ubuntu 11.04, tomcat 6.0.33 and java 1.5 I ran > into a problem after setting the character encoding filter for > requests. > When posting a req

POST data (single character) cleared when using tomcat 6.0.33 and Character Encoding Filter

2012-01-15 Thread kitagawa
Hi, I'm new to this but please direct me if I'm posting to the wrong list. While developing using ubuntu 11.04, tomcat 6.0.33 and java 1.5 I ran into a problem after setting the character encoding filter for requests. When posting a request, the value of any field with only a single

Re: Tomcat 7.0.19 character encoding issue with JSP

2011-09-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 9/1/2011 3:00 PM, David Wall wrote: > Thanks for all the tips and ideas! If you had already read this: http://wiki.apache.org/tomcat/FAQ/CharacterEncoding ...and it didn't help, we welcome any suggestions. Feel free to make any editions y

Re: Tomcat 7.0.19 character encoding issue with JSP

2011-09-01 Thread David Wall
You are right about the encoding of the .java file in Eclipse. I tried in 'vi' and sure enough the codes are in there correctly. Interesting that Eclipse opened the .jsp file and showed it nicely, but the .java file was not. I couldn't do the properties, though, since these files are not par

Re: Tomcat 7.0.19 character encoding issue with JSP

2011-09-01 Thread Konstantin Kolinko
2011/9/1 David Wall : > Thanks for the ideas, Mark, but it's still the same undesirable result. > > On 9/1/2011 6:58 AM, Mark Thomas wrote: >> >> I suspect you need: >> <%@ page pageEncoding="UTF-8" %> >> at the start of your JSP. >> >> .java files are written using UTF-8 by default so if what you

Re: Tomcat 7.0.19 character encoding issue with JSP

2011-09-01 Thread David Wall
Thanks for the ideas, Mark, but it's still the same undesirable result. On 9/1/2011 6:58 AM, Mark Thomas wrote: I suspect you need: <%@ page pageEncoding="UTF-8" %> at the start of your JSP. .java files are written using UTF-8 by default so if what you see there is wrong then the original .jsp

Re: Tomcat 7.0.19 character encoding issue with JSP

2011-09-01 Thread Mark Thomas
On 01/09/2011 03:41, David Wall wrote: > I'm trying to track down a character encoding issue that I've been > having, but don't really understand. Hopefully one of you will know what > the answer is. I suspect you need: <%@ page pageEncoding="UTF-8" %> at

Tomcat 7.0.19 character encoding issue with JSP

2011-08-31 Thread David Wall
I'm trying to track down a character encoding issue that I've been having, but don't really understand. Hopefully one of you will know what the answer is. I am using CKEditor to generate some user-specified HTML. CKEditor offers an "insert special character" function

Re: Character encoding question

2010-08-29 Thread Dave Cherkassky
pages are served, we frequently have "?"s where apostrophes should be. We think this is because the database-driven content contains the Microsoft style apostrophe. My question is, if I adjust the character encoding on Tomcat, will it serve the MS character instead of a question mark?

Re: Character encoding question

2010-08-27 Thread Pid
Microsoft style apostrophe. [wince] > My question is, if I adjust the character encoding on Tomcat, will it serve > the MS character instead of a question mark? I read the default encoding is > ISO-8859-1, which I thought would include this mystery character, but > apparently it do

Character encoding question

2010-08-27 Thread laredotornado
Hi, I'm using Tomcat 6.0.26. I'm noticing that when our JSPs pages are served, we frequently have "?"s where apostrophes should be. We think this is because the database-driven content contains the Microsoft style apostrophe. My question is, if I adjust the characte

Re: DefaultServlet and default character encoding

2010-06-18 Thread Rainer Jung
On 18.06.2010 13:50, Felix Schumacher wrote: On Fri, 18 Jun 2010 12:50:31 +0200, Rainer Jung wrote: On 18.06.2010 11:04, Felix Schumacher wrote: On Thu, 17 Jun 2010 19:32:36 +0400, Konstantin Kolinko wrote: 2010/6/17 Felix Schumacher: apache httpd thinks it would be better to append a char

Re: DefaultServlet and default character encoding

2010-06-18 Thread Felix Schumacher
On Fri, 18 Jun 2010 12:50:31 +0200, Rainer Jung wrote: > On 18.06.2010 11:04, Felix Schumacher wrote: >> On Thu, 17 Jun 2010 19:32:36 +0400, Konstantin Kolinko >> wrote: >>> 2010/6/17 Felix Schumacher: For the moment I have written a filter, which sets a default encoding, >> as soon as

Re: DefaultServlet and default character encoding

2010-06-18 Thread Rainer Jung
On 18.06.2010 11:04, Felix Schumacher wrote: On Thu, 17 Jun 2010 19:32:36 +0400, Konstantin Kolinko wrote: 2010/6/17 Felix Schumacher: For the moment I have written a filter, which sets a default encoding, as soon as Response.setContentType(String type) is called and type.startsWith("text/"

Re: DefaultServlet and default character encoding

2010-06-18 Thread Felix Schumacher
On Thu, 17 Jun 2010 19:32:36 +0400, Konstantin Kolinko wrote: > 2010/6/17 Felix Schumacher : >> For the moment I have written a filter, which sets a default encoding, as >> soon as Response.setContentType(String type) is called and >> type.startsWith("text/"). That works for the moment, but I woul

Re: DefaultServlet and default character encoding

2010-06-17 Thread Konstantin Kolinko
2010/6/17 Felix Schumacher : > For the moment I have written a filter, which sets a default encoding, as > soon as Response.setContentType(String type) is called and > type.startsWith("text/"). That works for the moment, but I would prefer the > solution described in above thread. I know that sett

Re: DefaultServlet and default character encoding

2010-06-17 Thread Mark Thomas
On 17/06/2010 15:23, Felix Schumacher wrote: > My Question now is, should I file a bug to enhance DefaultServlet? If so > would it be legal to include the patch from that discussion? That is covered by section 5 of the ALv2, so yes it would be legal. Make sure you correctly attribute it. I'd add t

DefaultServlet and default character encoding

2010-06-17 Thread Felix Schumacher
Hi, I have a character encoding problem with the DefaultServlet. We use it to serve static html content, which is encoded in utf-8. The DefaultServlet doesn't set characterset in the response, so the browser looks for a meta-tag describing the encoding. Luckily these are set in our conten

Re: Setting Character Encoding in server.xml

2010-02-16 Thread Peter Sparkes
Thanks Chuck, problem fixed Peter From: Peter Sparkes [mailto:pe...@didm.co.uk] Subject: Setting Character Encoding in server.xml I am using Linux/Tomcat 5.5. I am running several Tomcat instances each with its own server.xml and wish to use different character encoding in each instance

RE: Setting Character Encoding in server.xml

2010-02-16 Thread Caldarale, Charles R
> From: Peter Sparkes [mailto:pe...@didm.co.uk] > Subject: Setting Character Encoding in server.xml > > I am using Linux/Tomcat 5.5. > > I am running several Tomcat instances each with its own server.xml and > wish to use different character encoding in each instance. >

Setting Character Encoding in server.xml

2010-02-16 Thread Peter Sparkes
Hi, I am using Linux/Tomcat 5.5. I am running several Tomcat instances each with its own server.xml and wish to use different character encoding in each instance. Please how do I set the character encoding in server.xml Thanks Peter

Re: Character encoding for POST x-www-form-urlencoding (a success story)

2010-02-12 Thread Xie Xiaodong
Very nice work, Thank you for the sharing. On Fri, Feb 12, 2010 at 11:23 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > All, > > My company recently decided to alter our password complexity > requirements for our webapp, and

Character encoding for POST x-www-form-urlencoding (a success story)

2010-02-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, My company recently decided to alter our password complexity requirements for our webapp, and I got to implement the changes. What fun! We use a regular expression to enforce our password complexity, and it needed to be changed. Since we are sta

Re: Default character encoding for ServletRequest

2009-10-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Halm, On 10/8/2009 3:20 AM, Halm Reusser wrote: > Christopher Schultz wrote: > >> Give [accept-charset] a try and see what happens. > > Does neither work. But thanks. :( Does the client send a Content-Type header including a charset if you explici

Re: Default character encoding for ServletRequest

2009-10-08 Thread Halm Reusser
Christopher Schultz wrote: On that page is a POST form. When I evaluate the posted data, they are NOT utf-8 encoded. /Most/ clients will act the way you expect, yet, there is no requirement for them to do so. What client is this, by the way? Firefox 3.5.3, IE7, Safari 4.0.3 See the W3C doc

Re: Default character encoding for ServletRequest

2009-10-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Halm, On 10/7/2009 11:44 AM, Halm Reusser wrote: > Peter Crowther wrote: >> What are you trying to achieve? If we know more about the problem you're >> trying to solve, we may be able to suggest some different approaches. > > The client receives an

Re: Default character encoding for ServletRequest

2009-10-07 Thread Mark Thomas
Halm Reusser wrote: > Hi Markus, > > thanks for your hints. > > Markus Meyer wrote: >> It all depends on the client. IIRC if you set the charset in the >> content type header to utf-8, like this >> >> contentType="text/html; charset=utf-8" >> >> most browsers will then use utf-8 for HTTP GET and

Re: Default character encoding for ServletRequest

2009-10-07 Thread Halm Reusser
Hi Andre-John, Andre-John Mas wrote: I wan't do it within the application. I prefer to configure the app container or the app itself. I had asked for this too a while back, but I was told the RFC indicates ISO-8859-1, so the developers didn't want to allow you to change the default encoding

Re: Default character encoding for ServletRequest

2009-10-07 Thread Halm Reusser
Hi Markus, thanks for your hints. Markus Meyer wrote: It all depends on the client. IIRC if you set the charset in the content type header to utf-8, like this contentType="text/html; charset=utf-8" most browsers will then use utf-8 for HTTP GET and POST requests when responding to the given

Re: Default character encoding for ServletRequest

2009-10-07 Thread Halm Reusser
Hi Peter, Peter Crowther wrote: What are you trying to achieve? If we know more about the problem you're trying to solve, we may be able to suggest some different approaches. The client receives an HTML page with contentType="text/html; charset=utf-8" On that page is a POST form. When I eval

Re: Default character encoding for ServletRequest

2009-10-01 Thread Andre-John Mas
On 1-Oct-2009, at 07:22, Halm Reusser wrote: Pid wrote: How about? request.setCharacterEncoding("ENCODING"); I wan't do it within the application. I prefer to configure the app container or the app itself. I had asked for this too a while back, but I was told the RFC indicates ISO-8859

Re: Default character encoding for ServletRequest

2009-10-01 Thread Markus Meyer
It all depends on the client. IIRC if you set the charset in the content type header to utf-8, like this contentType="text/html; charset=utf-8" most browsers will then use utf-8 for HTTP GET and POST requests when responding to the given page. See this thread for some more information: http

Re: Default character encoding for ServletRequest

2009-10-01 Thread Peter Crowther
2009/10/1 Halm Reusser : > Is there a possibility to force the client to use a specific encoding? No. Consider the first request a client makes: it has to create and send a HTTP request with no prior knowledge of, or communication with, the server. So it has no way of asking the server what enco

Re: Default character encoding for ServletRequest

2009-10-01 Thread Halm Reusser
Pid wrote: How about? request.setCharacterEncoding("ENCODING"); I wan't do it within the application. I prefer to configure the app container or the app itself. Bearing in mind that you're not really changing what the client requests, or might expect you to be setting... Is there a poss

Re: Default character encoding for ServletRequest

2009-10-01 Thread Pid
On 01/10/2009 10:44, Halm Reusser wrote: Hi, Calling <%= request.getCharacterEncoding() %> in a jsp deployed in a Tomcat 6.0.20 container returns null. Is there any possibility to force a default CharacterEncoding for such requests? How about? request.setCharacterEncoding("ENCODING"); Bear

Re: Default character encoding for ServletRequest

2009-10-01 Thread André Warnier
Halm Reusser wrote: Hi, Calling <%= request.getCharacterEncoding() %> in a jsp deployed in a Tomcat 6.0.20 container returns null. Is there any possibility to force a default CharacterEncoding for such requests? Don't worry, there is already a default. The only problem is to figure out wh

Default character encoding for ServletRequest

2009-10-01 Thread Halm Reusser
Hi, Calling <%= request.getCharacterEncoding() %> in a jsp deployed in a Tomcat 6.0.20 container returns null. Is there any possibility to force a default CharacterEncoding for such requests? Thanks in advance! Regards, -- SWITCH Serving Swiss Universities -- Halm Re

RE: how to set character encoding in Tomcat 6.0

2008-07-03 Thread Caldarale, Charles R
> From: Zhou, Yan [mailto:[EMAIL PROTECTED] > Subject: how to set character encoding in Tomcat 6.0 > > response.setCharacterEncoding("UTF-7"); Java does not normally include UTF-7 support (probably a good thing). There is a SourceForge package you might try if you really,

how to set character encoding in Tomcat 6.0

2008-07-03 Thread Zhou, Yan
Hi There, With the default Tomcat 6.0, the following results in "UnsupportedEncodingException", how do I configure Tomcat for different encoding? I am setting the response in my Servlet: response.setCharacterEncoding("UTF-7"); Thanks, Yan Zhou Confidentiality Notice

Re: Character encoding

2008-06-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 nch, nch wrote: | Chris, I finally found it. | My server.xml was not correctly configured. My fault. | | Again, thank you all for your help. No problem. Would you mind explaining for the group what the actual problem was, and what the solution was?

Re: Character encoding

2008-06-19 Thread nch
Chris, I finally found it. My server.xml was not correctly configured. My fault. Again, thank you all for your help. - Original Message From: Christopher Schultz <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Wednesday, June 18, 2008 11:12:45 PM Subject: Re: Character en

Re: Character encoding

2008-06-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 nch, nch wrote: | You say: | Tomcat does not use any environment variables. The only settings that | affect the interpretation of the URI are the "URIEncoding" and | "useBody..." settings on the . Are you using more than one | connector? Are you usin

Re: Character encoding

2008-06-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 nch, nch wrote: | But, if the URL is allways encoded in the same way and tomcat does | not receive any other information on what the resulting character | encoding should be. Why do I get different values from tomcat? Because the servers are

Re: Character encoding

2008-06-18 Thread nch
M does and so tomcat read them indirectly through it?? Cheers - Original Message From: Christopher Schultz <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Wednesday, June 18, 2008 9:42:21 PM Subject: Re: Character encoding -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 nch,

Re: Character encoding

2008-06-18 Thread nch
Chris, thanks for your help. Please, see my comments bellow. Kind regards. - Original Message From: Christopher Schultz <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Wednesday, June 18, 2008 9:42:21 PM Subject: Re: Character encoding -BEGIN PGP SIGNED MESSAGE- Hash

Re: Character encoding

2008-06-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 nch, nch wrote: | - I do remote debugging through Eclipse to both tomcat on windows | (same machine as eclipse, though) and tomcat on debian. Okay, remote debugging should not affect the server, but I'm still wondering if the server.xml you think yo

Re: Character encoding

2008-06-18 Thread nch
e environment dependent? Hope this is useful. Lots of thanks to you all. - Original Message From: Christopher Schultz <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Wednesday, June 18, 2008 7:25:03 PM Subject: Re: Character encoding -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

Re: Character encoding

2008-06-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 nch, nch wrote: | I have a form that has an input field named "query". I type "piraña" | an submit the form using the GET method. I can see the browser has | encoded this parameter into the URI as query=pira%C3%B1a Is this a correct UTF-8 encoding o

Re: Character encoding

2008-06-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 nch, nch wrote: | This doesn't work either. :( | I removed the useBodyEncoding property, as you suggested, from the | Connector element, but the URI parameter coming in the request is | still being decoded into ISO-8859-1 instead of UTF-8. How do

Re: Character encoding

2008-06-18 Thread Johnny Kewl
- Original Message - From: "Johnny Kewl" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, June 18, 2008 6:26 PM Subject: Re: Character encoding - Original Message - From: "nch" <[EMAIL PROTECTED]> To: "Tomcat U

Re: Character encoding

2008-06-18 Thread Johnny Kewl
- Original Message - From: "nch" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, June 18, 2008 5:09 PM Subject: Re: Character encoding There it goes. I have a form that has an input field named "query". I type "piraña" an s

Re: Character encoding

2008-06-18 Thread Johnny Kewl
- Original Message - From: "André Warnier" <[EMAIL PROTECTED]> Could you give an example of such a UTF-8 encoded URI ? (and tell us what it should be decoded to) Thanks Andre have a look here... its not url encoding, thats something different It about being able to store japanese an

Re: Character encoding

2008-06-18 Thread nch
gt; To: Tomcat Users List Sent: Wednesday, June 18, 2008 4:29:54 PM Subject: Re: Character encoding nch wrote: > Thanks, Christopher. > This doesn't work either. > Could you give an example of such a UTF-8 encoded URI ? (and tell us what it should be decoded to) Thanks

Re: Character encoding

2008-06-18 Thread André Warnier
nch wrote: Thanks, Christopher. This doesn't work either. Could you give an example of such a UTF-8 encoded URI ? (and tell us what it should be decoded to) Thanks - To start a new topic, e-mail: users@tomcat.apache.org To

Re: Character encoding

2008-06-18 Thread nch
'm having this problem in debian etch (works fine in windows xp). Many thanks. - Original Message From: Christopher Schultz <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Wednesday, June 18, 2008 3:56:13 PM Subject: Re: Character encoding -BEGIN PGP SIGNED MESSAGE- Hash:

Re: Character encoding

2008-06-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 nch, nch wrote: | I'm having difficulties trying to decode URI parameters into UTF8. :( | When I moved the application | to linux (debian etch) I found out it was not working. We run on Linux as well. TC 5.5.23, Java 1.5.0_11. We have configured t

Character encoding

2008-06-18 Thread nch
Hi, there. I'm having difficulties trying to decode URI parameters into UTF8. I tried setting URIEncoding="UTF-8" and useBodyEncodingForURI="true" Connector properties. Didn't work. I tried adding a Filter by following the example at http://tompson.wordpress.com/2007/01/29/encoding-filter-for-ja

Re: [OT] Re: Character encoding

2007-07-09 Thread Christopher Schultz
verride the encoding used to send the data: The HTML 4 specification says this about the accept-charset attribute: "The default value for this attribute is the reserved string "UNKNOWN". User agents may interpret this value as the character encoding that was used to transmit the d

[OT] Re: Character encoding

2007-07-08 Thread lightbulb432
HTTP header (and can be overridden by using > request.setCharacterEncoding). Some broken clients don't provide the > character encoding of the request, which makes things difficult sometimes. What determines what's specified in the HTTP header for the value of the encoding? Is it pur

Re: Character encoding

2007-07-07 Thread Christopher Schultz
e 's URIEncoding parameter. POST requests always use the request's "body" encoding, which is specified in the HTTP header (and can be overridden by using request.setCharacterEncoding). Some broken clients don't provide the character encoding of the request, which makes thin

Character encoding

2007-07-05 Thread lightbulb432
ding of cookies for both incoming requests and outgoing responses? Thanks. -- View this message in context: http://www.nabble.com/Character-encoding-tf4031134.html#a11450938 Sent from the Tomcat - User mailing list archive at Nabble.com. -

Re: Character encoding

2006-12-18 Thread Mark Thomas
Mester József wrote: > Hello Mark > >> Mester József wrote: >>> Ok. Let's see my problem. >>> I have a form with text input box. I type Árvíztűrő tükörfúrógép and I get >>> " ÃrvíztűrÅ tükörfúrógép > >> I have tested this with the latest 5.5.x source and it works correctly >> (there have

Re: Character encoding

2006-12-18 Thread Mester József
Hello Mark >Mester József wrote: >> Ok. Let's see my problem. >> I have a form with text input box. I type Árvíztűrő tükörfúrógép and I get " >> ÃrvíztűrÅ tükörfúrógép >I have tested this with the latest 5.5.x source and it works correctly >(there haven't been any encoding related fixes

Re: Character encoding

2006-12-16 Thread Mark Thomas
Mester József wrote: > Hello Mark > > Ok. Let's see my problem. > I have a form with text input box. I type Árvíztűrő tükörfúrógép and I get " > ÃrvíztűrÅ tükörfúrógép > " > Beautiful isn't it? I have tested this with the latest 5.5.x source and it works correctly (there haven't been

RE: Feature request: Server level character encoding instead adding afilter for each web application.

2006-12-15 Thread LiuYan 刘研
SetCharacterEncoding filter config into the global web.xml, and delete the SetCharacterEncoding filter config from each web application, it works ok, thanks again ! Caldarale, Charles R wrote: > >> From: lovetide [mailto:[EMAIL PROTECTED] >> Subject: Feature request: Server level cha

Re: Character encoding

2006-12-15 Thread Mester József
Hello Mark >This is unlikely to help you and may be read-only on your JVM. >You don't say what doesn't work but generally the following is required: >set URIEncoding="UTF-8" on the connector >set the the correct response encoding on every response (you can do >this per page or use a filter to do

Re: Feature request: Server level character encoding instead adding a filter for each web application.

2006-12-13 Thread Mark Thomas
lovetide wrote: > 2. We afraid the efficiency of character encoding conversion: The data > POSTed from FORM are already x-www-form-urlencoded, if these data can be > converted directly into UTF-8 instead of internal character encoding of > Tomcat (is it iso-8859-1 ?), then it may be mo

Re: Character encoding

2006-12-13 Thread Mark Thomas
Mester József wrote: > Hi > I have some problem with character encoding. I have found a page ( > http://junlu.com/msg/1132.html ) and on this page there is a direction: > > 2. > In the Catalina.bat (windows) catalina.sh (linux) there must be a switch > added to the c

RE: Feature request: Server level character encoding instead adding afilter for each web application.

2006-12-12 Thread Caldarale, Charles R
> From: lovetide [mailto:[EMAIL PROTECTED] > Subject: Feature request: Server level character encoding > instead adding afilter for each web application. > > 1. Repeated configuration is too bored: If Tomcat supplied > that feature, we can delete the same config from each

Feature request: Server level character encoding instead adding a filter for each web application.

2006-12-12 Thread lovetide
We have many web applications running on Tomcat, and we choose UTF-8 character encoding for each web application, so we must add a SetCharacterEncoding filter for each web application to make sure the data POSTed from a FORM can be processed correctly. As I know, Tomcat has a server.xml config

Re: Character encoding

2006-12-12 Thread olivier nouguier
export CATALINA_OPTS="-Dfile.encoding=UTF-8" On 12/12/06, Mester József <[EMAIL PROTECTED]> wrote: Hi I have some problem with character encoding. I have found a page ( http://junlu.com/msg/1132.html ) and on this page there is a direction: 2. In the Catalina.bat (windows) ca

Character encoding

2006-12-12 Thread Mester József
Hi I have some problem with character encoding. I have found a page ( http://junlu.com/msg/1132.html ) and on this page there is a direction: 2. In the Catalina.bat (windows) catalina.sh (linux) there must be a switch added to the call to java.exe. The switch is: -Dfile.encoding=UTF-8 But

Re: Character encoding, once again....

2006-08-14 Thread dizzi
THANKS, that URIencoding property of HTTP connector was source of GET problems I tried to remove filter after that, but POST requests stop working. So ive instaled filter back. Now I have working both GET and POST. Aleluja... d. Anyway its On Mon, 14 Aug 2006 22:40:27 +0200, Mark Thomas

Re: Character encoding, once again....

2006-08-14 Thread Mark Thomas
dizzi wrote: > Im not sure if this is problem of tomcat, but i think that its most > probable. Unlikely. I haven't seen a valid bug in this area for quite some time. It is usually a combination of configuration (check the URIEncoding property of your connector) and application errors. For a correc

Character encoding, once again....

2006-08-11 Thread dizzi
Im not sure if this is problem of tomcat, but i think that its most probable. Problem: Data received from form are not encoded corectly. (tomcat 5.5, utf-8, win xp/RHEL4, struts) Symptoms: Data in request are completly screwed. (no matter if im displaying it in utf-8 console, or sending b

How to override UTF-8 character encoding with tomcat 5.5

2006-06-07 Thread Håkan Sjögren
I have a tomcat 5.5 server running utf-8. For this I included URIEncoding="UTF-8" in the server.xml for port80 in order fo r the browser to be able to access files with embedded swedish characters in the . How to run an older application that needs iso8859-1? Any directive in the web.xml or some

RE: Character Encoding : Unix vs Windows

2006-04-03 Thread Derrick Koes
java.net.URLEncoder.encode -Original Message- From: Nigel Blake [mailto:[EMAIL PROTECTED] Sent: Monday, April 03, 2006 5:43 PM To: users@tomcat.apache.org Subject: Character Encoding : Unix vs Windows Problem : Creating a URL type with parameters that have a space between them causes

Re: Character Encoding : Unix vs Windows

2006-04-03 Thread Michael Jouravlev
On 4/3/06, Nigel Blake <[EMAIL PROTECTED]> wrote: > Problem : Creating a URL type with parameters that have a space > between them causes an IOException in a javabean when called from > Tomcat 5.0.0.27 on a Unix installation. Using the same bean and JSP > code causes no problem when invoked on the

  1   2   >