Gossamer Forum
Home : Products : Gossamer Links : Discussions :

"Foreign characters" in directory and file names

Quote Reply
"Foreign characters" in directory and file names
This puzzles me ...

It seems to be generally accepted in the GT forums that 'non-english' characters, eg: Éßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ, cannot be used in the names of directories and files.

Nevertheless, I have used these characters in a testbed directory using flatfile Links. Provided they are url-encoded, there is no detectable problem building under FreeBSD.

Also I notice that the Open Directory uses them -- check out http://dmoz.org/...f5es_de_Professores/

Should I not be using them, even if they seem to work in practice.
Is there something I don't know about?
Is this OS-dependent (eg: OK under Unix, not OK under Windows)?

By the way, the urlencode sub is
Code:
sub urlencode {
# --------------------------------------------------------
# Escapes a string to make it suitable for printing as a URL.
#
my($toencode) = shift;
$toencode =~ s/([^a-zA-Z0-9_\-.])/uc sprintf("%%%02x",ord($1))/eg;
$toencode =~ s/\%2F/\//g;
return $toencode;
}


Last edited by:

YoYoYoYo: Oct 12, 2001, 1:19 AM
Subject Author Views Date
Thread "Foreign characters" in directory and file names YoYoYoYo 2510 Oct 12, 2001, 12:35 AM
Thread Re: [YoYoYoYo] "Foreign characters" in directory and file names
Alex 2418 Oct 12, 2001, 11:48 AM
Thread Re: [Alex] "Foreign characters" in directory and file names
YoYoYoYo 2413 Oct 12, 2001, 7:58 PM
Thread Re: [YoYoYoYo] "Foreign characters" in directory and file names
Alex 2456 Oct 13, 2001, 9:20 AM
Post Re: [Alex] "Foreign characters" in directory and file names
YoYoYoYo 2415 Oct 13, 2001, 10:48 AM