add utf-8 encoding to a simple apache localhost

Problems with the Windows version of XAMPP, questions, comments, and anything related.

add utf-8 encoding to a simple apache localhost

Postby CcDr574 » 07. October 2021 11:57

Hello,
I have a seemingly simple problem.
I wrote a couple of html files and wanted to run them on a localhost server. There's just one issue: They contain special characters encoded in utf-8, and my localhost wouldn't show them as what they should be, rather as some weird characters like "ü". I then spent hours searching the internet for solutions, however, none of them worked. Here's what other platforms suggested and I tried (yet didn't help anything):
in php.ini set values the following way:
Code: Select all
default_charset = "utf-8"
internal_encoding = "utf-8"
input_encoding = "utf-8"
output_encoding = "utf-8"

in my.ini uncommented the following code:
Code: Select all
init-connect=\'SET NAMES utf8\'
collation_server=utf8_unicode_ci
character_set_server=utf8
skip-character-set-client-handshake
character_sets-dir="C:/xampp/mysql/share/charsets"

in httpd.conf added:
Code: Select all
AddDefaultCharset utf-8

and of course double-checked the encoding of my html files, and just to be sure added meta-tags.

Yet, after all of this, even with all of them together, the server still decides to use "ü" instead of "ä". Is there anything else I could try? Or, perhaps, did I do something wrong in my previous attempts? Thanks in advance for helping me.
CcDr574
 
Posts: 1
Joined: 07. October 2021 11:25
XAMPP version: 3.3.0
Operating System: Windows 10

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 203 guests