简体   繁体   中英

Charset in XAMPP Apache Server

I got some issues with my Apache server from XAMPP for running PHP, I included the following in my PHP files to set their charset to the following:

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">

I want to display the german special characters ä, ö, ü and ß. But all I get displayed are some strange letters.

Does anyone know how to solve this? Change the charset of the apache server maybe? I would be glad if anyone could help me figuring this out?

Yours, Tim

try this:

<meta http-equiv="content-type" content="text/html; charset=UTF-8">

and save your file as "UTF-8" format.

I suggest your try using the charset UTF-8 instead:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

Or if you're developing for HTML5, you can use this shorter version:

<meta charset="utf-8">

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM