| View previous topic :: View next topic |
| Author |
Message |
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
It also encodes: в
Chars like that? |
| |
|
|
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
|
| HS^, did you type some non-ASCII then? |
| |
|
|
Poolkop
Joined: 01 Jun 2006 Posts: 123
|
HS^, urls are only ascii
if you try to put anything non-ascii into an url you need to encode it...
and then you start having problems... |
| |
|
|
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
| Yes but will so will URLEncoder replace non-ascii ? |
| |
|
|
Poolkop
Joined: 01 Jun 2006 Posts: 123
|
| HS^: since there is no standard how you encode non-ascii characters... (utf-8? latin-1? <other encoding>?) |
| |
|
|
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
| Ah.. ok |
| |
|
|
Poolkop
Joined: 01 Jun 2006 Posts: 123
|
HS^, tias...
depending on how the client is configured and the web server is configured it may or may not work...
but if the client uses one encoding and the server another then the error is in a the specification beeing to loose |
| |
|
|
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
Doesnt work..
I just rreplace the spaces wih '+' |
| |
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
|
HS^, only use URLEncoder on those parts of the String that need encoding.
HS^, are you using the encode(String) or encode(String,String)? |
| |
|
|
Poolkop
Joined: 01 Jun 2006 Posts: 123
|
HS^, you are having a url and URLEncoder is for "HTML form encoding"
url is not a html form, they may partially use the same encoding.... |
| |
|
|
|