Some Windows PHP setups and minimal Docker images ship without
mbstring, which crashed any page touching the database. Provide
UTF-8 equivalents for the four mb_* functions the project uses;
the extension keeps precedence when loaded.
WAMP/XAMPP serve the site from a subfolder of www while production
serves it from the domain root; root-absolute URLs broke every page
and asset on Windows. Add fws_base_url()/fws_url() and route all
shell URLs (nav, footer, logos, canonical, package thumbnails)
through them, with path-form route detection adjusted for
subfolder deployments.
Négociation de contenu via l'en-tête Accept : un navigateur (text/html
explicite) reçoit la page 404 du site, tout autre client (curl, scripts,
apps) reçoit le JSON. S'applique aux 404 doux et aux réponses du filet
d'erreurs PHP.