Attempting to configure utf8
in a html5
environment on Windows using Xampp
.
Functioning smoothly without any stylesheets:
<!DOCTYPE html>
<html lang="es-ES">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>Test</title>
</head>
<body>
My Output Compañia 2014
</body>
</html>
Result of above code:
My Outpul Compañia 2014
However, upon adding a stylesheet to the head:
<!DOCTYPE html>
<html lang="es-ES">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>Test</title>
<link rel="stylesheet" href="/test/css/style.css" type="text/css" />
</head>
<body>
My Output Compañia 2014
</body>
</html>
The charset Utf8
experiences issues in output:
My Output CompaÒia 2014
Seeking solutions but unsuccessful so far with methods like using AddDefaultCharset UTF-8
in .htaccess
, or specifying utf-8
in the css
.