You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Daniel Sun <Da...@citect.com> on 2005/05/10 11:04:49 UTC

Does Tomcat support URL containing CHINESE characters?

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. �¼��ļ��� �C ��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.

 


Re: Does Tomcat support URL containing CHINESE characters?

Posted by Mark Thomas <ma...@apache.org>.
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. �¼��ļ��� �C ��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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org