Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file to uri to file madness



Francois-Paul Servant wrote:

>When I paste any of these two urls in Safari or Firefox, the file "éé.htm" is displayed :
>file:///Users/x/Sites/x/2006/08/diacritics%20in%20filenames/%C3%A9%C3%A9.html
>http://127.0.0.1/~x/x/2006/08/diacritics%20in%20filenames/%C3%A9%C3%A9.html

You specifically say to create two files ending in ".htm", but you then say
the URLs you use end in ".html".  I'm not sure if this difference is a typo
or not.


I tried your basic experiment here, with the following files:
  <2-eacutes>.html
  <3-eacutes>.html
  <4-eacutes>.html

(I'm not posting literal e-acutes, because I don't know what mangling might
happen in the transmission.)

I put the 3 files in a directory where Apache creates an automatic index
page.  With the auto-generated URLs, all 3 files are retrievable.  However,
when I use %c3%a9, only the 2-eacutes file works.  The other two return a
404 error.

When I look in the httpd access-log, I see the %c3%a9 URL and Apache's
response code (200 or 404), but it makes no sense why 2 will work but 3 or
4 will not.

When I look in the access-log at the auto-generated URLs, they have the
substring "e%cc%81" for each e-acute.  This seems to be lower-case 'e'
followed by the combining acute-accent.  This form works for 2, 3, or 4
e-acutes in a row.  I don't see why this would work but %c3%a9 will
sometimes not.

This is on a Core Solo mini, OS 10.4.7, with personal web sharing enabled
(custom Apache config, though). The browser is Safari, so I see the problem
even without Firefox as the browser.

I also tried the %c3%a9 form of the URL using a Netscape 4.08 browser from
a Mac OS 7.6.1 machine, and it also failed with 3 or 4 in a row, but worked
with 2 in a row.  The e%cc%81 forms worked in 2, 3, or 4. As ancient as
that client configuration is, it comes in very handy for testing.

Based on the above, I suspect a problem with the Apache web server, but I
don't know exactly what the problem might be.  Since it appears on 10.4.7,
it may be fairly obscure.

The URL-escaped form of the decomposed-accents worked (e%cc%81), so you
might use that as a work-around, but please file a bug against Apple's Apache
because it looks like a repeatable fail-case to me.

  -- GG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.