Reputation: 15038
can you please provide some help, this is my code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<div id="wrapper">
<div id="container">
<?php
$var = utf8_encode("nađžćča slovaćč");
echo utf8_decode($var);
?>
</div>
</div>
</body>
</html>
I did try several things: removing utf8_encode / decode, putting header () in php code, but none of this worked, so can you please tell me where am I doing it wrong, thx!
Upvotes: 2
Views: 5866
Reputation: 6718
You do not need to encode/decode data. Simply, you may save file using UTF-8 encoding.
Upvotes: 3
Reputation: 9973
You may get rid of this attribute lang="en". For me , I tried in different browsers and it works well
Upvotes: 1