Your tomcat isn't running with UTF-8 and/or your platform doesn't use
UTF-8 for file name.
--------------------------------------------
On my Linux Fedora Core 3:
echo $LANG == ja_JP.UTF-8
means text file(including .java) and file name on OS file system
are created with UTF8 encoding.
on our servlet:
String contType = "text/html;charset=UTF-8";
request.setCharacterEncoding("UTF8");
response.setContentType(contType);
//or, response.setCharacterEncoding("UTF8");
out.println("<IMG SRC=\"/" + text + ".jpg\">"); //text is a UTF8 String
Arun Prasad R wrote:
> i have a ウェブ.jpg (japanese filename) in images directory.
> while requesting that file url encode to %E3%82%A6%E3%82%A7%E3%83%96.jpg
>
> but tomcat doesn't serve ウェブ.jpg instead it says file not found.
>
> my question is how to make tomcat to decode
> %E3%82%A6%E3%82%A7%E3%83%96.jpg as ウェブ.jpg
>
--
Hiroshi Iwatani
*stop cruelty* Annual number of institutionally euthanized cats and dogs
including kittens and puppies: US 5 million, JP 500 thousand. How about
your country? *for our better karma*
---------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]