Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 1699 invoked by uid 500); 9 Jan 2003 09:11:36 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 1680 invoked from network); 9 Jan 2003 09:11:36 -0000 Received: from gw1.asahi-kasei.co.jp (210.81.112.51) by daedalus.apache.org with SMTP; 9 Jan 2003 09:11:36 -0000 Received: from gw1.asahi-kasei.co.jp (localhost [127.0.0.1]) by gw1.asahi-kasei.co.jp (8.9.3/ASAHI-KASEI-MX-01112116) with ESMTP id SAA09705 for ; Thu, 9 Jan 2003 18:11:45 +0900 (JST) Received: from omms1.om.asahi-kasei.co.jp ([10.41.96.201]) by gw1.asahi-kasei.co.jp (8.9.3/ASAHI-KASEI-01090715) with ESMTP id SAA09685 for ; Thu, 9 Jan 2003 18:11:44 +0900 (JST) Received: from cosmos.om.asahi-kasei.co.jp (cosmos [10.41.56.100]) by omms1.om.asahi-kasei.co.jp (8.9.3/3.7WACTION_tk1_20010830) with ESMTP id SAA22816 for ; Thu, 9 Jan 2003 18:06:38 +0900 (JST) Received: from cosmos9.om.asahi-kasei.co.jp (cosmos9 [10.41.56.109]) by cosmos.om.asahi-kasei.co.jp (8.9.3/3.7WACTION_tk1_19991215) with ESMTP id SAA11476 for ; Thu, 9 Jan 2003 18:11:44 +0900 (JST) Received: from om.asahi-kasei.co.jp ([10.51.132.146]) by cosmos9.om.asahi-kasei.co.jp (8.9.3/3.7WACTION_tk1_20010825) with ESMTP id SAA06276; Thu, 9 Jan 2003 18:11:45 +0900 (JST) Message-ID: <3E1D3C68.ED7015CD@om.asahi-kasei.co.jp> Date: Thu, 09 Jan 2003 18:10:00 +0900 From: Anthony Cunningham X-Mailer: Mozilla 4.7 [ja] (WinNT; I) X-Accept-Language: ja MIME-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: [users@httpd] Apache returns 404 not found for non ascii filenames with Java Plugin. I searched the archives and the web for this problem but was unable to find a clear solution. Basically the problem is as follows: In our java applet it downloads images from the web server. Recently we have been experimenting with using Apache 2 on windows instead of IIS. A lot of our images have japanese character filenames and/or japanese character directory paths. ie. non-ascii. Apache will return a 404 not found for these. for example: (I can't write japanese with this mail client so I will use capital letters to indicate japanese characters) if the file is images/JA_NAME.jpg then Apache returns 404 not found. In the access log Apache shows a request for images/JA_NAME.jpg and a 404. This file exists exactly as Apache wrote in the log. If you enter images/ in the browser it lists all the files, including images/JA_NAME.jpg. Click on this and the browser will load images/%e6%bc%a2%e5%ad%97%e5%90%8d.jpg and you can see the image. In the access log it shows images/%e6%bc%a2%e5%ad%97%e5%90%8d.jpg and 200 which I assume means success. A few other points In Internet Explorer 5.5 entering either images/JA_NAME.jpg or images/%e6%bc%a2%e5%ad%97%e5%90%8d.jpg succeeds so maybe IE converts before requesting. In Netscape(R) Communicator 4.7 Japanese version only images/%e6%bc%a2%e5%ad%97%e5%90%8d.jpg will work. If java is told explicity to load images/%e6%bc%a2%e5%ad%97%e5%90%8d.jpg it will work. My boss read on the internet about a module called mod_encoding for non-ascii files however this seems to be for linux only. I'm not sure if there is a version for windows yet. Does anyone have any information about this. It may seem to be a problem with java and URL encoding and could well be however the fact that it works fine with IIS makes me wonder if there is a way to get it working on Apache Win32. I would appreciate any help or experience anyone can give. Anthony Details: Apache/2.0.43 Win32 Windows NT (Japanese ) and Windows 2000 (Japanese) Java Plugin 1.4 and 1.3 For future searchers of this and similar topics: unicode filename doublebyte filename multibyte filename japanesee filename non-ascii files --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org