masterlevel

Umstellung von ISO auf UTF-8 – Checklist

In alle Schnelle:

1. Datenbank umstellen von iso auf UTF-8

ALTER DATABASE datenbankname DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;

ALTER TABLE meineTabelle1 CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
ALTER TABLE meineTabelle2 CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
.
.
.

2.) Angabe der Zeichencodierung in HTML

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

3.1.) HTTP-Header „Content-Type“ in php-Dateien

<?php
header('Content-Type: text/html; charset=utf-8');
?>

oder

3.2) via .htaccess

AddDefaultCharset utf-8
Die mobile Version verlassen