RE: Does Tomcat support URL containing CHINESE characters?

2005-05-11 Thread Daniel Sun
Hi Mark,

Thanks heaps for the help.
URIEncoding=UTF-8 works for me.

Cheers,
Daniel

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 11, 2005 4:00 AM
To: Tomcat Users List
Subject: Re: Does Tomcat support URL containing CHINESE characters?

As a minimum you are going to need to set the URIEncoding attribute on
the connector. I guess this needs to be set to UTF-8.

I have done some limited testing on this in the past and it is possible
but given the general mess that is i18n and the internet I would avoid
using non ISO-8859-1 characters in URIs if at all possible.

Mark

Daniel Sun wrote:
 Hi all,
 
 I have the following settings.
 
 WinXP Prof CHINESE SIMPLIFIED w/ SPK2
 
 Tomcat 5.0.28
 
 JDK 1.5..0.3
 
  
 
 I have a folder, whose name contains CHINESE characters (eg.  ? 
 new folder), under the [CATALINA_HOME]\webapps\jsp-example.
 
 When I browse to it in IE with URL 
 http://localhost:8080/jsp-examples// 
 http://localhost:8080/jsp-examples// , I got the HTTP status 404, 
 the error description is : The requested resource 
 (/jsp-examples/%E6%96%A4%B9) is not available.
 
 I can access English only URL without any problem (eg. 
 http://localhost:8080/jsp-examples/new folder)
 
  
 
 I tried the same with Apache 2 and IIS, it works in both environments.
 
  
 
 Can someone please give me a hint on where I can go now? (eg. Do I have to 
 use Apache to support this, and PLUS connectors with Tomcat to support 
 Servelet in addition).
 
  
 
 Many thanks in advance.
 
  
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Does Tomcat support URL containing CHINESE characters?

2005-05-10 Thread Mark Thomas
As a minimum you are going to need to set the URIEncoding attribute on
the connector. I guess this needs to be set to UTF-8.

I have done some limited testing on this in the past and it is possible
but given the general mess that is i18n and the internet I would avoid
using non ISO-8859-1 characters in URIs if at all possible.

Mark

Daniel Sun wrote:
 Hi all,
 
 I have the following settings.
 
 WinXP Prof CHINESE SIMPLIFIED w/ SPK2
 
 Tomcat 5.0.28
 
 JDK 1.5..0.3
 
  
 
 I have a folder, whose name contains CHINESE characters (eg.  ? 
 new folder), under the [CATALINA_HOME]\webapps\jsp-example.
 
 When I browse to it in IE with URL 
 http://localhost:8080/jsp-examples// 
 http://localhost:8080/jsp-examples// , I got the HTTP status 404, 
 the error description is : The requested resource 
 (/jsp-examples/%E6%96%A4%B9) is not available.
 
 I can access English only URL without any problem (eg. 
 http://localhost:8080/jsp-examples/new folder)
 
  
 
 I tried the same with Apache 2 and IIS, it works in both environments.
 
  
 
 Can someone please give me a hint on where I can go now? (eg. Do I have to 
 use Apache to support this, and PLUS connectors with Tomcat to support 
 Servelet in addition).
 
  
 
 Many thanks in advance.
 
  
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]