fix: use utf-8 in forms

This commit is contained in:
Niklas 2024-10-22 19:07:42 +02:00
parent ea34b989e1
commit f8243667e7

View File

@ -12,7 +12,7 @@
{{ $seed := now.Unix }} {{ $seed := now.Unix }}
{{ $random := delimit (shuffle (split (md5 $seed) "" )) "" }} {{ $random := delimit (shuffle (split (md5 $seed) "" )) "" }}
<form action="{{ $action }}" method="{{ $method }}" id="form-{{ $random }}" class="space-y-4 dark:bg-gray-800 dark:text-gray-100 p-4"> <form action="{{ $action }}" method="{{ $method }}" id="form-{{ $random }}" class="space-y-4 dark:bg-gray-800 dark:text-gray-100 p-4" enctype="multipart/form-data" accept-charset="UTF-8">
{{ $fieldCount := 0 }} {{ $fieldCount := 0 }}
{{ range $key, $value := .Params }} {{ range $key, $value := .Params }}
{{ if hasPrefix $key "field" }} {{ if hasPrefix $key "field" }}