From a4dc6cfa800c44cb33640aa03df5acf32735cc10 Mon Sep 17 00:00:00 2001 From: Nils <> Date: Wed, 19 Mar 2025 10:42:47 +0100 Subject: [PATCH] Encoding --- archiv/.htaccess | 57 ++++++++---------------------------------------- 1 file changed, 9 insertions(+), 48 deletions(-) diff --git a/archiv/.htaccess b/archiv/.htaccess index 367d805..a3cdde7 100644 --- a/archiv/.htaccess +++ b/archiv/.htaccess @@ -1,51 +1,12 @@ DirectoryIndex index.php index.html index.htm index.pdf + +# Ensure .typst files are treated as plain text with UTF-8 encoding +AddType text/plain .typst +AddCharset utf-8 .typst AddDefaultCharset utf-8 -# MIME TYPES - - - # DEFAULTS - DefaultLanguage de - AddLanguage de-DE .html .css .js - AddCharset utf-8 .html .css .js .xml .json .rss .atom .typst .md - - # JAVASCRIPT - AddType application/javascript js jsonp - AddType application/json json - - # FONTS - AddType font/opentype otf - AddType application/font-woff woff - AddType application/x-font-woff woff - AddType application/vnd.ms-fontobject eot - AddType application/x-font-ttf ttc ttf - AddType image/svg+xml svg svgz - AddEncoding gzip svgz - - # AUDIO - AddType audio/mp4 m4a f4a f4b - AddType audio/ogg oga ogg - - # VIDEO - AddType video/mp4 mp4 m4v f4v f4p - AddType video/ogg ogv - AddType video/webm webm - AddType video/x-flv flv - - # OTHERS - AddType application/octet-stream safariextz - AddType application/x-chrome-extension crx - AddType application/x-opera-extension oex - AddType application/x-shockwave-flash swf - AddType application/x-web-app-manifest+json webapp - AddType application/x-xpinstall xpi - AddType application/xml atom rdf rss xml - AddType application/vnd.openxmlformats .docx .pptx .xlsx .xltx . xltm .dotx .potx .ppsx - AddType text/cache-manifest appcache manifest - AddType text/vtt vtt - AddType text/x-component htc - AddType text/x-vcard vcf - AddType image/webp webp - AddType image/x-icon ico - - + + ForceType text/plain + Header set Content-Type "text/plain; charset=UTF-8" + Header set Content-Disposition "inline" +