Re: Import XLS file with UTF-8
| From: | Zoltán Németh | Date: | Fri, 10 Aug 2007 13:10:33 +0000 |
| Subject: | Re: Import XLS file with UTF-8 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260566@lists.php.net to get a copy of this message | ||
2007. 08. 10, péntek keltezéssel 15.04-kor Alain Roger ezt írta:
> Hi,
>
> So now i know how to import the content of the CSV file to database,
> however, before to import to database i do a simple test.
> in fact, i display in my browser all content of my CSV file.
>
> unfortunately, not all characters are displayed correctly.
> in PHP page include <meta http-equiv="Content-Type" content="text/html;
> charset=UTF-8"> but it does not help to display the Slovak Characters which
> are correctly display in EXCEL when i open the CSV file with it.
> i tried to display a standar slovak web page in my browser and it works
> perfectly well.
>
> So where could be the problem ?
> thanks a lot,
you should send a content-type header:
header("Content-Type: text/html; charset=utf-8");
hope that helps
Zoltán Németh