Re: UTF8 Vs Latin9 and valid encoding.

From: "Marcelo (dot)" <wachaca(at)yahoo(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: UTF8 Vs Latin9 and valid encoding.
Date: 2006-08-30 13:52:28
Message-ID: 20060830135228.16496.qmail@web53009.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello,
Thanks for your reply.
When I execute
show client_encoding;
I get UNICODE.

However, up to know I was using pgAdmin III Query and
EMS... you gave me the idea to use psql, where I
noticed something interesting:

\encoding
UTF8

show client_encoding;
UTF8

So this seems to be OK..
However when I type áéíóúñ on screen I see ßØ«·±
Why would this be?

Thanks again

--- Markus Schaber <schabi(at)logix-tt(dot)com> wrote:

> Hi, Marcelo,
>
> Marcelo . wrote:
>
> > I receive the error msg:
> > ERROR: invalid UTF-8 byte sequence detected near
> byte
> > 0xf1
> >
> > Isn't UTF-8 the same as UNICODE where it
> encapsulates
> > all other coding schemes including latin9?
>
> Yes, it is.
>
> But it seems that your client and the server
> disagree on the encoding
> they use.
>
> I think the problem is that your client (psql, I
> presume) uses latin9 to
> communicate with the server, but the server assumes
> the client uses utf8.
>
> in psql, you can use \encoding to show the encoding
> psql uses, and "show
> client_encoding;" to show the encoding the server
> thinks the client uses.
>
> Try one of:
>
> SET client_encoding TO LATIN9; -- Tell server:
> client uses latin9
>
> \encoding LATIN9; -- Set clients encoding
>
> You can also set UTF-8 here, the server will convert
> between the client
> and database encoding (but it needs to know).
>
> HTH,
> Markus
>
>
>
> --
> Markus Schaber | Logical Tracking&Tracing
> International AG
> Dipl. Inf. | Software Development GIS
>
> Fight against software patents in EU! www.ffii.org
> www.nosoftwarepatents.org
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please
> send an appropriate
> subscribe-nomail command to
> majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list
> cleanly
>

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Gregory Stark 2006-08-30 20:47:29 Re: Create Assertion -- Question from a newbie
Previous Message Anton de Wet 2006-08-30 13:06:05 Re: Error on function parameters