In MySQL I have set my data field type to utf8_bin
and i am storing data in Unicode. Texts are being properly displayed in web pages.
I want to generate excel file exporting data from my table to it. The output in .xls
and .cvs
is - '????'.
I checkout out other answers here, its been referred to use headers:
header("content-type:application/csv;charset=UTF-8");
similar question. But its not working. After using header, in csv Output is - सूरà¥à¤¯à¤¾.
Please help. Thanks.