Everything is in the question : I have a Php script that is a UTF-8 file. In this script I want to do this :
<?
echo "âêïû\n";
?>
If I run it in a MSDOS prompt I get this :
C:\php>php -c C:\WINDOWS\php.ini -f mysqldump.php
âêïû
C:\php>
I've not been able to find the right conversion scheme. I've tried also this code :
$tab = mb_list_encodings();
foreach ($tab as $enc1) {
foreach ($tab as $enc2) {
$t=mb_convert_encoding("âêïû\n", $enc1, $enc2);
if (strlen($t)<14) {
echo $enc1." ".$enc2." = ".$t."\n";
}
}
}
And I didn't find the right conversion !
Any help would be greatly appreciated