CKEditor 4 を使用して複数の wysiwyg テキストエリアを作成しています。データは MYSQL データベースに保存しています。テキストエリアを空白のままにしてデータベースに送信すると、CKEditor は自動的に特殊文字Â
Âを挿入します。誰でもこれの修正を知っていますか?
HTML:
<textarea cols="60" rows="8" name="description" class="ckeditor"></textarea>
PHP:
// Handler stuff here
$name = $_POST['name'];
$title = $_POST['title'];
$description = $_POST['description'];
$sql = "INSERT INTO `aircraft`
(name,
description,
title)
VALUES (?, ?, ?)";
$sth = $this->dbh->prepare($sql);
$sth->execute(array($name, $description, $title));