Filename containing French characters ?

Frank Bonnet f.bonnet at esiee.fr
Tue May 24 18:32:58 UTC 2011


finally one of our developer has written
a php function that transcode all accentuated
characters to the corresponding non accentuated
thanks to her !!!

but the problem is NOT solved just workarrounded


Le 24/05/2011 19:53, C. P. Ghost a écrit :
> On Mon, May 23, 2011 at 5:50 PM, Modulok<modulok at gmail.com>  wrote:
>> Short answer, use a glob pattern. Assume I have a file named 'à fichier.txt':
>
> (...)
>
> Very good hints indeed.
>
> I once had a directory full of files with strange characters, so I wrote a
> little program that replaced every non-ascii char in a filename with its
> hex-encoding (like this: "Hello%20World%21", % escape char), so
> I could manipulate them with the shell. As long as the expanded
> filenames didn't hit the MAXNAMELEN limit in<sys/dirent.h>, it
> worked perfectly.
>
> I could dig this C program out of old archives, but I guess that it is
> faster to rewrite it on the fly, or even script it with sh(1), tr(1), awk(1),
> and find(1)... ;-)
>
> Alternatively to such a run-once-in-a-while program, I could also
> imagine a file system layer on top of existing file systems that
> would do this conversion automatically, but that's harder to code,
> and harder to debug (kernel mode!).
>
> -cpghost.
>


More information about the freebsd-questions mailing list