Thread: encoding

encoding

From
"Joel Fradkin"
Date:

I am not clear on what makes this work?

 

I am going live Sunday and have thus far been using SQL_ASCHII.

I still have the feeling I should be using something else, but when I used Unicode my conversion from MSSQL blew up on encoding error for a char that wasn’t plain ASCHII(IE French or Spanish etc.).

The conversion program ran fine when I chose SQL_ASCHII.

The data is on a windows 2k MSSQL database.

The conversion program is a .net app that reads from MSSQL win2k data base and writes to postgtres 8.0.2 on Redhat AS4.

I tried to get this to work a while back and found if I set the encoding explicitly on the connect in the .net connector it did not give me an error, but I still have many asp pages and I could not get the encoding set using the ODBC (which is what the asp pages use).

I believe I tried setting it with a sql statement, but that did not seem to help either.

I can move forward using SQL_ASCHII, but would prefer to have encoding set properly, but I ma not sure what I am missing.

 

Any ideas would be much appreciated.

 

Joel Fradkin

 


 

 

Re: encoding

From
Aarni Ruuhimäki
Date:
Hi,

In my experience , I think your best bet and an all-around good general 
encoding to use is latin1, which copes with l'accent egys & graves, umlauts, 
harasoos and others.

Not so sure about the M$-import stuff though. Or asp or .net. Read the Gates 
Private Licence ...

You might also want (re?)configure your Pg-system with --enable-locale and set 
your preferred locale and db default encoding in initdb to suit your needs, 
in order to have alphabetical sortings etc. work ok.

BR,

Aarni


On Friday 06 May 2005 16:50, you wrote:
> I am not clear on what makes this work?
>
>
>
> I am going live Sunday and have thus far been using SQL_ASCHII.
>
> I still have the feeling I should be using something else, but when I used
> Unicode my conversion from MSSQL blew up on encoding error for a char that
> wasn't plain ASCHII(IE French or Spanish etc.).
>
> The conversion program ran fine when I chose SQL_ASCHII.
>
> The data is on a windows 2k MSSQL database.
>
> The conversion program is a .net app that reads from MSSQL win2k data base
> and writes to postgtres 8.0.2 on Redhat AS4.
>
> I tried to get this to work a while back and found if I set the encoding
> explicitly on the connect in the .net connector it did not give me an
> error, but I still have many asp pages and I could not get the encoding set
> using the ODBC (which is what the asp pages use).
>
> I believe I tried setting it with a sql statement, but that did not seem to
> help either.
>
> I can move forward using SQL_ASCHII, but would prefer to have encoding set
> properly, but I ma not sure what I am missing.
>
>
>
> Any ideas would be much appreciated.
>
>
>
> Joel Fradkin


--------------
This is a bugfree broadcast to you
from **Kmail**
on **Fedora Core 2** linux system
--------------


Re: encoding

From
Peter Eisentraut
Date:
Aarni Ruuhimäki wrote:
> You might also want (re?)configure your Pg-system with
> --enable-locale and set your preferred locale and db default encoding
> in initdb to suit your needs, in order to have alphabetical sortings
> etc. work ok.

If you're still using a PostgreSQL version that has the --enable-locale 
option then you rather need to upgrade.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/


Re: encoding

From
Aarni Ruuhimäki
Date:
Hi,

And excuse me ?

[root@kymifedora3_test postgresql-8.0.2]# ./configure --enable-locale
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking which template to use... linux
checking whether to build with 64-bit integer date/time support...

BR,

Aarni


On Saturday 07 May 2005 23:54, you wrote:
> Aarni Ruuhimäki wrote:
> > You might also want (re?)configure your Pg-system with
> > --enable-locale and set your preferred locale and db default encoding
> > in initdb to suit your needs, in order to have alphabetical sortings
> > etc. work ok.
>
> If you're still using a PostgreSQL version that has the --enable-locale
> option then you rather need to upgrade.


--------------
This is a bugfree broadcast to you
from **Kmail**
on **Fedora Core 2** linux system
--------------


Re: encoding

From
Tom Lane
Date:
Aarni Ruuhimäki <aarni@kymi.com> writes:
>> If you're still using a PostgreSQL version that has the --enable-locale
>> option then you rather need to upgrade.

> And excuse me ?

> [root@kymifedora3_test postgresql-8.0.2]# ./configure --enable-locale
> checking build system type... i686-pc-linux-gnu

Proves nothing, since configure scripts ignore unrecognized --enable
and --with options.  (The Autoconf boys steadfastly maintain that
that's a feature not a bug, but I disagree.)

The more relevant check is "configure --help | grep locale"
        regards, tom lane


Re: encoding

From
Aarni Ruuhimäki
Date:
Ain't trying to prove no one no thing.

So sorry.

Thamks.

On Sunday 08 May 2005 19:43, you wrote:
> Aarni Ruuhimäki <aarni@kymi.com> writes:
> >> If you're still using a PostgreSQL version that has the --enable-locale
> >> option then you rather need to upgrade.
> >
> > And excuse me ?
> >
> > [root@kymifedora3_test postgresql-8.0.2]# ./configure --enable-locale
> > checking build system type... i686-pc-linux-gnu
>
> Proves nothing, since configure scripts ignore unrecognized --enable
> and --with options.  (The Autoconf boys steadfastly maintain that
> that's a feature not a bug, but I disagree.)
>
> The more relevant check is "configure --help | grep locale"
>
>    regards, tom lane

--
Aarni Ruuhimäki
Megative Tmi
Pääsintie 26
45100 Kouvola
Finland
+358-5-3755035
+358-50-4910037

www.kymi.com | cfm.kymi.com
--------------
This is a bugfree broadcast to you
from **Kmail**
on **Fedora Core 2** linux system
--------------
Linux is like a wigwam - no windows, no gates and a free apache inside.