RE: [SQL] RE : [SQL] Convert text from UTF8 to ASCII

From: "Paul Dam" <p(dot)dam(at)amyyon(dot)nl>
To: "seb JACK" <seb(at)jack(dot)fr>, <pgsql-sql(at)postgresql(dot)org>
Subject: RE: [SQL] RE : [SQL] Convert text from UTF8 to ASCII
Date: 2009-03-16 14:44:14
Message-ID: 28DD271C986F234A9B4573938292C1B31BD735@s0008.a-more.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Sebastien,

I know by looking at the data using PgAdmin.

Met vriendelijke groet,

Paul Dam

Informatieanalist

Amyyon
Bijsterhuizen 11.58

6546 AS Nijmegen

050 - 311 5686

www.amyyon.nl <http://www.amyyon.nl/>

________________________________

Van: pgsql-sql-owner(at)postgresql(dot)org [mailto:pgsql-sql-owner(at)postgresql(dot)org] Namens seb JACK
Verzonden: vrijdag 13 maart 2009 13:49
Aan: pgsql-sql(at)postgresql(dot)org
Onderwerp: [SQL] RE : [SQL] Convert text from UTF8 to ASCII

Hi

Perhaps you should try to set your db client_encoding to UTF8.

How do you know you have 'patiënt' instead of 'patiënt'?

I mean i also deals with UTF8 databases and all i store is correctly stored. But i can't check it with command line psql as my shell is configured with iso-8859-1 charset.

So with psql i will also see 'patiënt' even if 'patiënt' is correctly stored!

Perhaps your problem is as simple as that!?

Sebastien.

________________________________

De: pgsql-sql-owner(at)postgresql(dot)org de la part de Paul Dam
Date: mer. 11/03/2009 16:51
À: Leif B. Kristensen; pgsql-sql(at)postgresql(dot)org
Objet : Re: [SQL] Convert text from UTF8 to ASCII

UNICODE.

Met vriendelijke groet,

Paul Dam
Informatieanalist

Amyyon
Bijsterhuizen 11.58
6546 AS Nijmegen
050 - 311 5686
www.amyyon.nl

-----Oorspronkelijk bericht-----
Van: pgsql-sql-owner(at)postgresql(dot)org [mailto:pgsql-sql-owner(at)postgresql(dot)org] Namens Leif B. Kristensen
Verzonden: woensdag 11 maart 2009 16:46
Aan: pgsql-sql(at)postgresql(dot)org
CC: Paul Dam
Onderwerp: Re: [SQL] Convert text from UTF8 to ASCII

On Wednesday 11. March 2009, Paul Dam wrote:
>Hoi,
>
>
>
>I store content of an .txt file in a text column in the database.
>
>server_encoding is UTF8.
>
>
>
>If the .txt file is in ASCII this is correctly stored in the database.
>
>If the .txt file is in UTF8 this is NOT correctly stored in the
> database.
>
>
>
>Examples:
>
>In Dutch the term for patient is 'patiënt'.
>
>It is stored as 'patiënt'.

That looks a lot like UTF-8 to me. What is your client-encoding?

--
Leif Biberg Kristensen | Registered Linux User #338009
Me And My Database: http://solumslekt.org/blog/

--
Sent via pgsql-sql mailing list (pgsql-sql(at)postgresql(dot)org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql

--
Sent via pgsql-sql mailing list (pgsql-sql(at)postgresql(dot)org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Charles Tam 2009-03-16 20:56:21 Exclude fields from SELECT command
Previous Message Marcin Stępnicki 2009-03-16 14:30:18 Re: [SQL] Oracle to PostgreSQL