pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Database encoding
3+ messages / 3 participants
[nested] [flat]

* Database encoding
@ 2008-09-03 13:40 Anibal David Acosta <aa@personal.net.py>
  2008-09-03 17:58 ` Re: Database encoding Jeremy Tunnell <jeremy.tunnell@gmail.com>
  2008-09-04 07:35 ` Re: Database encoding valgog <valgog@gmail.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Anibal David Acosta @ 2008-09-03 13:40 UTC (permalink / raw)
  To: pgsql-admin

Hello, I have a postgresql installed with encoding "WIN1252".

 

But I need to create a DB with LATIN1 encoding, when I try I got the error:
"Encoding Latin1 does not match server's locale Spanish_Spain.1252. The
servers's LC_CTYPE setting require encoding WIN1252

 

 

Is possible to change the server encoding to LATIN1?

 

 

Thanks for your help!

 

 

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Database encoding
  2008-09-03 13:40 Database encoding Anibal David Acosta <aa@personal.net.py>
@ 2008-09-03 17:58 ` Jeremy Tunnell <jeremy.tunnell@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Jeremy Tunnell @ 2008-09-03 17:58 UTC (permalink / raw)
  To: Anibal David Acosta <aa@personal.net.py>; +Cc: pgsql-admin

The setting is in a file called i18n, but I can't recall where it's located.

On Wed, Sep 3, 2008 at 6:40 AM, Anibal David Acosta <aa@personal.net.py>wrote:

>   Hello, I have a postgresql installed with encoding "WIN1252".
>
>
>
> But I need to create a DB with LATIN1 encoding, when I try I got the error:
> "Encoding Latin1 does not match server's locale Spanish_Spain.1252. The
> servers's LC_CTYPE setting require encoding WIN1252
>
>
>
>
>
> Is possible to change the server encoding to LATIN1?
>
>
>
>
>
> Thanks for your help!
>
>
>
>
>

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Database encoding
  2008-09-03 13:40 Database encoding Anibal David Acosta <aa@personal.net.py>
@ 2008-09-04 07:35 ` valgog <valgog@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: valgog @ 2008-09-04 07:35 UTC (permalink / raw)
  To: pgsql-admin

On Sep 3, 3:40 pm, a...@personal.net.py ("Anibal David Acosta") wrote:
> Hello, I have a postgresql installed with encoding "WIN1252".
>
> But I need to create a DB with LATIN1 encoding, when I try I got the error:
> "Encoding Latin1 does not match server's locale Spanish_Spain.1252. The
> servers's LC_CTYPE setting require encoding WIN1252
>
> Is possible to change the server encoding to LATIN1?
>
> Thanks for your help!

You should use the same encoding for your DB instance as you used when
creating a DB with initdb. Usually it makes sense to always use UTF8
as your encoding... in case you will need some non-LATIN1
characters... you can check which encoding was used when creating a DB
with show lc_ctype...

Regards,

-- Valentine

P.S.: there are many posts related to that issue. You can look up a
BUG mailing list for collate and encoding.



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2008-09-04 07:35 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-09-03 13:40 Database encoding Anibal David Acosta <aa@personal.net.py>
2008-09-03 17:58 ` Jeremy Tunnell <jeremy.tunnell@gmail.com>
2008-09-04 07:35 ` valgog <valgog@gmail.com>

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