Skip to content

Instantly share code, notes, and snippets.

View olcirem's full-sized avatar
💭
I may be slow to respond.

olcirem

💭
I may be slow to respond.
View GitHub Profile
@olcirem
olcirem / fixwrongutf8encoding.php
Created February 14, 2020 03:18 — forked from kasperkamperman/fixwrongutf8encoding.php
Function to fix ut8 special characters displayed as 2 characters (utf-8 interpreted as ISO-8859-1 or Windows-1252)
<?php header('Content-Type: text/html; charset=utf-8'); ?>
<html>
<head>
<title>Fix wrong encoded UTF8 characters</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
</head>
<body>
<pre>
<?php
/* Problem description: