Bom dia

On Fri, Apr 23, 2010 at 11:14 AM, Diogo Castro <[email protected]> wrote:

> Bom dia,
>
> Alguém sabe a SOLUÇÃO para meu problema de encoding:
>
> [r...@srv08 opt]# createdb -U postgres -T template1 -E LATIN1 diogo
> createdb: database creation failed: ERROR:  encoding LATIN1 does not match
> server's locale en_US.UTF-8
> DETAIL:  The server's LC_CTYPE setting requires encoding UTF8.
>
> SO: rhel5
> locale:
> [r...@srv08 opt]# locale
> LANG=pt_BR.UTF-8
> LC_CTYPE="pt_BR.UTF-8"
> LC_NUMERIC="pt_BR.UTF-8"
> LC_TIME="pt_BR.UTF-8"
> LC_COLLATE="pt_BR.UTF-8"
> LC_MONETARY="pt_BR.UTF-8"
> LC_MESSAGES="pt_BR.UTF-8"
> LC_PAPER="pt_BR.UTF-8"
> LC_NAME="pt_BR.UTF-8"
> LC_ADDRESS="pt_BR.UTF-8"
> LC_TELEPHONE="pt_BR.UTF-8"
> LC_MEASUREMENT="pt_BR.UTF-8"
> LC_IDENTIFICATION="pt_BR.UTF-8"
> LC_ALL=
>


Em linhas gerais você está tentando criar um banco com um encoding LATIN 1
onde seu encoding do sistema operacional está setado para UTF-8.

Você precisa que teu encoding do SO esteja de acordo com o encoding do banco
que quer criar.

Não sei o teu SO e nem a versão do PostgreSQL então não vou sugerir nada :-)

-- 
Marcelo Costa
www.marcelocosta.net
-------------------------------------------------
“You can't always get what you want”,

Doctor House in apology to Mike Jagger
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a