Re: Simple question on Unicode URL in Tomcat

2003-06-03 Thread John Z Yang
Dear all: I have a simple question regarding to the Unicode URL support in Tomcat. If I pass a Unicode URL to Tomcat, can it retrieve the targeted content? Some of our web pages are named under double byte characters. We have tried various ways but all have failed. If you have a work around, plea

Re: Simple question on Unicode URL in Tomcat

2003-06-02 Thread Shawn
Hiho, try something like: String s = URLEncoder.encode(s, enc); s is your URL and enc is the java encoding such as "Shift_JIS". See URLEncoder for more info. Will work from java 1.4 I believe. Had the same problem and this seems to solve it just fine. -- Shawn Happily using M2, Opera's revol

Simple question on Unicode URL in Tomcat

2003-06-02 Thread John Z Yang
Dear all: I have a simple question regarding to the Unicode URL support in Tomcat. If I pass a Unicode URL to Tomcat, can it retrieve the targeted content? Some of our web pages are named under double byte characters. We have tried various ways to make it work but all failed. If you have a work a