please watch this example:-
<?php
$filename ="test.txt";
$myFile= fopen($filename,'w+');
if(! $myFile){
print ("File could not be opened.");
exit;
}
$string = "こんいちわ,あかい,いち、ね、さん、よん、ご、ろく、なな";
fputs($myFile, $string);
$lines=file("test.txt");
echo $lines[0];
fclose($myFile);
?>
i am using Japanese text and create a txt file,named Test.txt.when i am using file function to take every line in an array.
and then i display the line using echo.but i dont get the write output
i get i"・รท・醂あe"・a€・Av!Aj"・Aゅ€・AiAよ"・At€・ garbage character.
but when i am using english character its display wright output.
i set Mbstring settings to EUC-JP.and check all other settings related to php.ini
please help me.