I'm trying to get to grips with extended character sets and as an exercise thought I'd try and display the date in Japanese.
So far my script is
<?php
mb_internal_encoding("UTF-8");
mb_http_output('UTF-8');
$c = @mysql_connect('localhost','user','pass');
$dbdb = mysql_select_db('db $c);
$locale = setlocale(LC_ALL,'ja_JP');
$date = strftime("%A %e %B %Y",time());
$sql = "insert into test (date_string) values ('$date')";
mysql_query($sql) or die(mysql_error());
echo('Done.<br>');
echo($date.'<br>');
echo(mb_detect_encoding($date).'<br>');
echo($locale);
?>
When I echo the date out, or view the line inserted into the db, I get a load of question marks where the Japanese characters should be, and mb_detect_encoding is showing nothing.
Where am I going wrong?