Thank you very much Lemon Juice for your reply well I did follow your instructions but unfortunately my result is same remain. I am using the these code
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
and for inserting the record
PHP Code:
$data=mysql_real_escape_string($data);
and for viewing
PHP Code:
$str=$row['data']; // data from db
$str=htmlspecialchars($str);
echo "<textarea>".$str."</textarea>";
or even If I use this
PHP Code:
echo "<textarea>" . htmlspecialchars($str, ENT_QUOTES, 'UTF-8') . "</textarea>";
User Input is
Hello how are you
and he is" is now " what' are
and the result in one single Line
Hello how are you\r\nand he is\\ is now \\ what\' are
Bookmarks