Hi,

I need assistance pertaining to utf8 errors. I am having troubleshottings
for weeks already and still can't solve it.

I am running MySQL 4.1.8 and PHP 4.3.10.

When I am trying to insert these characters:

é
æ
è

MySQL table will displays:

é
æ
è

Below is my code. What could be the problem?

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

<form accept-charset=utf-8 method=post action="">

<textarea name=ta cols=28 rows=6></textarea>
<input type=submit>
</form>

</html>

<?php
$data = $HTTP_POST_VARS['ta'];

echo "<br><br>characters: $data";

$conn = mysql_connect("localhost", "root", "test") or die(mysql_error());
mysql_select_db('bug', $conn) or die(mysql_error());

$q = "INSERT into bug (message) values ('$data')";
mysql_query($q, $conn);

?>

Thanks,

Andy


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to