pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jean-Michel POURE <jm.poure@freesurf.fr>
To: Nhan Ngo Dinh <nngodinh@tiscali.it>
Cc: pgadmin-hackers@postgresql.org
Cc: pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Unicode support
Date: Tue, 19 Feb 2002 09:27:56 +0100
Message-ID: <200202190827.g1J8RuFP012732@www1.translationforge> (raw)
In-Reply-To: <5.1.0.14.0.20020219090159.01f34478@pop.tiscalinet.it>
References: <5.1.0.14.0.20020218195104.015a0250@pop.tiscalinet.it>
	<5.1.0.14.0.20020219090159.01f34478@pop.tiscalinet.it>

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



view thread (32+ messages)  latest in thread

Message-ID: <200202190827.g1J8RuFP012732@www1.translationforge>
Permalink:  ../200202190827.g1J8RuFP012732@www1.translationforge/
Also on:    postgresql.org/message-id/200202190827.g1J8RuFP012732@www1.translationforge

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: jm.poure@freesurf.fr, nngodinh@tiscali.it, pgadmin-hackers@postgresql.org
  Subject: Re: [ODBC] Unicode support
  In-Reply-To: <200202190827.g1J8RuFP012732@www1.translationforge>
  References: <5.1.0.14.0.20020218195104.015a0250@pop.tiscalinet.it> <5.1.0.14.0.20020219090159.01f34478@pop.tiscalinet.it> <200202190827.g1J8RuFP012732@www1.translationforge>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox