Page MenuHomeDevCentral

nginx autoindex pages aren't served as UTF-8
Closed, ResolvedPublic

Description

nginx uses the following template for autoindex pages:

<html>
<head><title>Index of /[...]/</title></head>
<body>
[...]

It doesn't define the doctype, or something like <meta charset="UTF-8" /> in head section.

Event Timeline

dereckson triaged this task as Normal priority.

[ Not working actively on this, also we'd need a repro URL. ]

dereckson claimed this task.
dereckson updated the task description. (Show Details)

Test URL: https://windriver.nasqueron.org/~dereckson/ops/T1396-nginx-autoindex/

On nginx 1.28.2, URL are encoded with entities, and those entities represent the UTF-8 character, as %C3%A9 matches é:
<a href="%C3%A9l%C3%A9phant.txt">éléphant.txt</a> 22-Mar-2026 18:34 0

So I guess it's OK now.