<?php function convert($message) { $message = stripslashes($message); $message = htmlspecialchars($message, ENT_QUOTES, "UTF-8"); // $message = utf8_encode($message); return $message; } ?>