Page 1 of 1

export to csv file in PHP, please help

Posted: Mon Aug 14, 2006 9:09 am
by songbacdau
I want to export data form database to csv file, but have a problem: my data in utf-8 charset, when i export to csv, it can't show in right unicode font. Please help me.

Posted: Mon Aug 14, 2006 3:56 pm
by RobertGonzalez
You may be able to use the header() function in conjunction with a content-type declaration.

Posted: Mon Aug 14, 2006 4:15 pm
by jamiel
How are you doing your export? You should be able to combine SELECT ... INTO OUTFILE with 'character_set_filesystem' in MySQL.

Posted: Wed Aug 16, 2006 7:50 am
by ddragas