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, please let us know.

Many thanks.

John

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 around, please let us know.

Many thanks.

John

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 revolutionary e-mail client: 
http://www.opera.com/m2/

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