Cant able to read Latin alphabets in SCV
Posted: Sat May 22, 2010 5:26 am
HI,
I cant able to read the Latin alphabets like " À Á Â Ã Ä Å È É Ê Ë à á â ã ä" from CSV. Its showing me junk characters.
The code which i used to read CSV is below:
Is there any way to read those characters?
Thanks in advance.
I cant able to read the Latin alphabets like " À Á Â Ã Ä Å È É Ê Ë à á â ã ä" from CSV. Its showing me junk characters.
The code which i used to read CSV is below:
Code: Select all
if ( ! $file = file("CSV FILENAME", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES)) die ('Could not open input file');
$match = "No";
foreach($file as $line)
{
print_r($file);
}Is there any way to read those characters?
Thanks in advance.