\[code\]<?php$row = 1;$handle = fopen ("test.csv","r");while ($data = http://stackoverflow.com/questions/2048347/fgetcsv ($handle, 1000,",")) { $num = count ($data); print "<p> $num fields in line $row: <br>\n"; $row++; for ($c=0; $c < $num; $c++) { print $data[$c] . "<br>\n"; }}fclose ($handle);?> \[/code\]The above comes from php manual,but I didn't see where to specify the encoding(like utf8 or so)