|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Encoding problemI get the following error when accessing a servlet with this url:
Bautah%F8j+Kursuscenter/ The URL contains escaped bytes unsupported by the UTF-8 encoding. And, yes I have set character encoding like this: <?xml version="1.0" encoding="ISO-8859-1"?> <web-app> <character-encoding>ISO-8859-1</character-encoding> (Resin-3.0.16 o Suse) Any ideas? Thanks! |
|
|
Re: Encoding problemOn Feb 7, 2006, at 4:47 AM, Bendik Rognlien Johansen wrote: > I get the following error when accessing a servlet with this url: > Bautah%F8j+Kursuscenter/ > > The URL contains escaped bytes unsupported by the UTF-8 encoding. > > And, yes I have set character encoding like this: > > <?xml version="1.0" encoding="ISO-8859-1"?> > <web-app> > <character-encoding>ISO-8859-1</character-encoding> The encoding for URLs looks like: <server> <url-character-encoding>ISO-8859-1</url-character-encoding> Resin decodes the URL before it dispatches to a <web-app> to the <url- character-encoding> needs to be at the <server> level. -- Scott > > > (Resin-3.0.16 o Suse) > > > Any ideas? > > Thanks! > |
|
|
Re: Encoding problemjust a question: by reading at: http://java.sun.com/j2se/1.5.0/docs/api/java/net/URLEncoder.html#encode(java.lang.String,%20java.lang.String) I supposed that UTF-8 should be the only charsed used for URL encoding: am I right or am I missing something? thanks, -Simone Scott Ferguson ha scritto:
--
------------------------------------------------------ Simone Ing. Avogadro Wise-Lab S.r.l. c/o Polo Regionale di Como - Politecnico di Milano P.le Gerbetto, 6 - 22100 Como (Italy) Tel: +39 031 332 7362 - Fax: +39 031 332 7387 Email: simone.avogadro/at/wise-lab.it Web: http://www.wise-lab.it - http://www.wisemodel.com ------------------------------------------------------ Leggi l'informativa in base all'art.13 del D.lgs. 30 giugno 2003, 196 sul trattamento dei dati personali da parte di Wise-Lab: http://www.wise-lab.it/info_privacy.htm |
|
|
Re: Encoding problem
The choice of UTF-8 is a recommendation in the HTML 4 spec. It is
not a requirement.
It would be a good idea to always use UTF-8, however, for maximum compatibility with other software that is following the recommendation. Mark just a question: by reading at: |
|
|
Re: Encoding problemThanks! That worked.
To anyone else having the same problem, make sure you put <url- character-encoding>ISO-8859-1</url-character-encoding> AFTER <class- loader> and <authenticator> On Feb 7, 2006, at 5:10 PM, Scott Ferguson wrote: > > On Feb 7, 2006, at 4:47 AM, Bendik Rognlien Johansen wrote: > >> I get the following error when accessing a servlet with this url: >> Bautah%F8j+Kursuscenter/ >> >> The URL contains escaped bytes unsupported by the UTF-8 encoding. >> >> And, yes I have set character encoding like this: >> >> <?xml version="1.0" encoding="ISO-8859-1"?> >> <web-app> >> <character-encoding>ISO-8859-1</character-encoding> > > The encoding for URLs looks like: > > <server> > <url-character-encoding>ISO-8859-1</url-character-encoding> > > Resin decodes the URL before it dispatches to a <web-app> to the > <url-character-encoding> needs to be at the <server> level. > > -- Scott > >> >> >> (Resin-3.0.16 o Suse) >> >> >> Any ideas? >> >> Thanks! >> > > |
| Free embeddable forum powered by Nabble | Forum Help |