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



Hi,

until I found my problem with "ééé.html" on the mac, I was happy with the method that I exposed briefly in my previous message.
Works (well, almost ;-)) on the mac, and on windoze (for http urls served by Apache 2). The uri can be inserted directly into html.
However, I think it's an error (at least for the moment, and for european languages) not to stick to us ascii for filenames that should be served by a web server. The RFC about uris says only us ascii is allowed. So, if you want to have special characters in your filenames (as I do, for aesthetic reasons and well, because my language uses them), you end up with uris that are full of %, and that are very unaesthetic. Or you risk to get problems with software that do not handle correctly non ASCII chars in uris. Another potential problem is if you want to change the OS of your server.

Best regards,

fps

Le 23 août 06 à 08:12, Larry Nussbaum a écrit :

I've also been bitten by the URI translation problem, but from URI escape sequence to non-english languages - it appears that there are multiple schemes to encode...

Does anyone here have any leads on a Java technique to translate that works more times than less?

Thanks in advance,

Larry

Francois-Paul Servant wrote:
I thought that  I knew the right way to compute the uri of a file, under a format usable directly in an href tag, and that, given such an uri, I was able to find back the file. ...

-- 
 Larry NussbaumPurgamentum init,
 email@hidden    exit purgamentum
 917/921-6547 (US)
 +61 404 482 544 (AU)
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
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

References: 
 >file to uri to file madness (From: Francois-Paul Servant <email@hidden>)
 >Re: file to uri to file madness (From: Larry Nussbaum <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.