I have a problem that in my production server all text in the post requests that contains non standard ascii characters are corrupted while the encoding is utf-8. On my development server the text is displayed fine.
print(mb_detect_encoding($_POST["text"]));
print($_POST["text"]);
Output is:
utf-8
Ã?Ã?Ã? Ã?Ã?Ã? Ã?Ã?Ã?
while input is ÅÅÅ ÄÄÄ ÖÖÖ
I use <meta charset="UTF-8">
in the head and accept-charset="UTF-8"
in the form.
<form id="announcement_form" method="post" action="php/announcment_bar.php" accept-charset="UTF-8">