Tuesday, January 31, 2023

Re: httpd and locale

Omar Polo <op@omarpolo.com> writes:

> On 2023/01/30 15:57:03 +0100, Manuel Giraud <manuel@ledu-giraud.fr> wrote:
>> Hi,
>>
>> Is it possible to serve files with non ASCII UTF-8 charaters in their
>> names with httpd? I have tried to start httpd like this:
>>
>> $ env LC_CTYPE=en_US.UTF-8 httpd -d
>>
>> But, I always get a 404 error on such files. Am I missing something?
>> Or maybe this behaviour is on purpose?
>
> The encoding of the filename shouldn't matter. UNIX file names are
> just bytestrings where only '/' and '\0' are disallowed.

Thanks for this explanation! I was wrong. httpd is not the cause here.
A file was upload through a CMS and store as latin-1 in base and then
copied over by another mean (that should have translate it to UTF-8).
Encodings problems are fun :-| Sorry for the noise.
--
Manuel Giraud

No comments:

Post a Comment