X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 71AAD475AF8 for ; Wed, 2 Apr 2003 07:33:19 -0500 (EST) Received: from hotmail.com (f105.pav1.hotmail.com [64.4.31.105]) by postgresql.org (Postfix) with ESMTP id C802947592C for ; Wed, 2 Apr 2003 07:33:18 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 2 Apr 2003 04:33:21 -0800 Received: from 193.227.168.171 by pv1fd.pav1.hotmail.msn.com with HTTP; Wed, 02 Apr 2003 12:33:20 GMT X-Originating-IP: [193.227.168.171] X-Originating-Email: [nathalieboulos@hotmail.com] From: "Nathalie Boulos" To: pgsql-admin@postgresql.org Subject: Import/export CSV files to postgres Date: Wed, 02 Apr 2003 15:33:20 +0300 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 02 Apr 2003 12:33:21.0485 (UTC) FILETIME=[0BF1BFD0:01C2F914] X-Spam-Status: No, hits=-3.1 required=5.0 tests=BAYES_20 version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/19 X-Sequence-Number: 8174 Hi, i'm importing and exporting CSV files to fill in tables on postgres 7.3.2 via PHP-4.2.2 (web interface) The database uses UTF-8 encoding and MS-office uses ISO-8859-1. When i import a CSV file to the DB, I execute the "recode" command to do the ISO>UTF-8 conversion, after uploading it. Then the CSV is successfully inserted in the DB. The problem is on the export level: the PHP script writes a CSV file to the disk. This file is UTF-8. It cannot be read properly in excel. "Recode" in the oposite way (UTF-8>ISO) is useless. Does anyone know what I should do to be able to see the exported CSV in MS-Excel correctly?? I would greatly appreciate any suggestion. Thanks in advance. Regards Nathalie _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail