Received: from www1.translationforge ([212.11.36.58]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g1J8RuE63716; Tue, 19 Feb 2002 03:27:56 -0500 (EST) (envelope-from jm.poure@freesurf.fr) Received: from there ([192.168.1.102]) by www1.translationforge (8.12.1/8.12.1) with SMTP id g1J8RuFP012732; Tue, 19 Feb 2002 09:27:57 +0100 Message-Id: <200202190827.g1J8RuFP012732@www1.translationforge> Content-Type: text/plain; charset="iso-8859-1" From: Jean-Michel POURE Reply-To: jm.poure@freesurf.fr Organization: Translationforge To: Nhan Ngo Dinh Subject: Re: [ODBC] Unicode support Date: Tue, 19 Feb 2002 09:27:56 +0100 X-Mailer: KMail [version 1.3.1] References: <5.1.0.14.0.20020218195104.015a0250@pop.tiscalinet.it> <5.1.0.14.0.20020219090159.01f34478@pop.tiscalinet.it> In-Reply-To: <5.1.0.14.0.20020219090159.01f34478@pop.tiscalinet.it> Cc: pgadmin-hackers@postgresql.org, pgsql-odbc@postgresql.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by postgresql.org id g1J8XwU64018 X-Archive-Number: 200202/32 X-Sequence-Number: 242 Dear Nhan Dgo, Please CC pg-odbc and pgadmin lists so that anyone can participate. > I'm currently running Microsoft SQL Server 2000 on a Windows 2000 Server > platform, but this is only to read the source database. I don't know how to > retrieve the source encoding... It should be UNICODE since it stores both > LATIN1 and arabic chars. I am not sure. There should be a way to run a select statement to know what encoding is used internally. Search the $W website. > The target platform is Linux with PostgreSQL 7.2 and PHP/Apache of course > and this shouldn't be a problem for me. Don't try to view data in the Windows platform, this will not work because pgAdmin2 and the odbc driver are not utf-8 compatible. Make sure to migrate the schema first using pgAdmin2. Then export text and convert it using iconv or recode (if not utf-8 yet). Maybe you can try to open the text files in Yudit, the multi-byte text editor, which will tell you what encoding is used. Try to write a simple script under PHP. Please note the testing php page 1) should be saved in utf-8 format 2) and should carry utf-8 headers to tell the browser to switch to utf-8. Be sure your browser has the arabic fonts (go to an arabic web site to verify). Good luck my friend. Cheers, Jean-Michel POURE