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