Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Strange Characters in Directory List

Status
Not open for further replies.

stanley1610

Programmer
Mar 22, 2004
42
0
0
HK
I customized Tomcat to list files of a folder by editing web.xml

<servlet>
<servlet-name>listing</servlet-name>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

However, if the file name is non English characters such as Chinese and Japanese, it will be shown as strange characters and it prompts an error page if I click the file name.

How can I solve it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top