Valeu pessoal funcionou com a opção que o Edson passou..

createdb -E UTF8 -T template0 --lc-collate=pt_BR.utf8 --lc-ctype=pt_BR.utf8
tst

Atenciosamente,

Emerson Martins
DBA Jr


Em 18 de outubro de 2011 11:00, <[email protected]
> escreveu:

> Send pgbr-geral mailing list submissions to
>        [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
> or, via email, send a message with subject or body 'help' to
>        [email protected]
>
> You can reach the person managing the list at
>        [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of pgbr-geral digest..."
>
>
> Tópicos de Hoje:
>
>   1. Re: Criar BD com ENCODE UTF8 no Slackware (Edson neto)
>   2. Re: Criar BD com ENCODE UTF8 no Slackware
>      (Flavio Henrique Araque Gurgel)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 18 Oct 2011 11:38:43 -0200
> From: Edson neto <[email protected]>
> Subject: Re: [pgbr-geral] Criar BD com ENCODE UTF8 no Slackware
> To: Comunidade PostgreSQL Brasileira
>        <[email protected]>
> Message-ID:
>        <CADmWVFriV5rGR5X0ufv=bznzsylwx4va-6tl6ehuhapq-e5...@mail.gmail.com
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Em 18 de outubro de 2011 11:14, Emerson Martins
> <[email protected]>escreveu:
>
> > Olá pessoal..
> > Tenho um banco de dados PostgreSQL versao 9.0.2 num server Slackware onde
> > nesse mesmo server temos varias bases em LATIN1 por necessidade dos
> > sistemas...
> > Porém surgiu a necessidade de criar duas bases com o encode em UTF8, e
> > estou tendo alguns erros.Segue:
> >
> > /usr/local/pgsql/bin/createdb -E UTF8 bdteste
> > createdb: database creation failed: ERROR : encoding UTF8 does not macth
> > locale pt_BR
> > Detail: Then chosen LC_TYPE setting requires encoding LATIN1
> >
> > postgres@pgpoll:~$ locale
> > LANG=pt_BR.utf8
> > LC_CTYPE="pt_BR.utf8"
> > LC_NUMERIC="pt_BR.utf8"
> > LC_TIME="pt_BR.utf8"
> > LC_COLLATE=pt_BR.utf8
> > LC_MONETARY="pt_BR.utf8"
> > LC_MESSAGES="pt_BR.utf8"
> > LC_PAPER="pt_BR.utf8"
> > LC_NAME="pt_BR.utf8"
> > LC_ADDRESS="pt_BR.utf8"
> > LC_TELEPHONE="pt_BR.utf8"
> > LC_MEASUREMENT="pt_BR.utf8"
> > LC_IDENTIFICATION="pt_BR.utf8"
> > LC_ALL=
> >
> >
> > Preciso configurar mais alguma coisa..Se alguém tiver alguma dica posta..
> >
> > Obrigado a todos.
> >
> > Emerson Martins
> > DBA Jr
> >
> >
> > _______________________________________________
> > pgbr-geral mailing list
> > [email protected]
> > https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
> >
> > Caso você deve usar o template0 como template do seu BD.
> createdb -E UTF8 -T template0 --lc-collate=pt_BR.utf8 --lc-ctype=pt_BR.utf8
> tst
>
> []s
>
> Edson Souza
> -------------- Próxima Parte ----------
> Um anexo em HTML foi limpo...
> URL:
> http://listas.postgresql.org.br/pipermail/pgbr-geral/attachments/20111018/1b54a294/attachment.html
>
> ------------------------------
>
> Message: 2
> Date: Tue, 18 Oct 2011 11:46:07 -0200
> From: Flavio Henrique Araque Gurgel <[email protected]>
> Subject: Re: [pgbr-geral] Criar BD com ENCODE UTF8 no Slackware
> To: Comunidade PostgreSQL Brasileira
>        <[email protected]>
> Message-ID:
>        <CAGHTAeP0kirg7rVNNmx8_yrFh7UDhtf5UQi_k=z0pyzjf1-...@mail.gmail.com
> >
> Content-Type: text/plain; charset=ISO-8859-1
>
> > Olá pessoal..
> > Tenho um banco de dados PostgreSQL versao 9.0.2 num server Slackware onde
> > nesse mesmo server temos varias bases em LATIN1 por necessidade dos
> > sistemas...
> > Porém surgiu a necessidade de criar duas bases com o encode em UTF8, e
> estou
> > tendo alguns erros.Segue:
> > /usr/local/pgsql/bin/createdb -E UTF8 bdteste
> > createdb: database creation failed: ERROR : encoding UTF8 does not macth
> > locale pt_BR
> > Detail: Then chosen LC_TYPE setting requires encoding LATIN1
> > postgres@pgpoll:~$ locale
> > LANG=pt_BR.utf8
> > LC_CTYPE="pt_BR.utf8"
> > LC_NUMERIC="pt_BR.utf8"
> > LC_TIME="pt_BR.utf8"
> > LC_COLLATE=pt_BR.utf8
> > LC_MONETARY="pt_BR.utf8"
> > LC_MESSAGES="pt_BR.utf8"
> > LC_PAPER="pt_BR.utf8"
> > LC_NAME="pt_BR.utf8"
> > LC_ADDRESS="pt_BR.utf8"
> > LC_TELEPHONE="pt_BR.utf8"
> > LC_MEASUREMENT="pt_BR.utf8"
> > LC_IDENTIFICATION="pt_BR.utf8"
> > LC_ALL=
> >
> > Preciso configurar mais alguma coisa..Se alguém tiver alguma dica posta..
>
> /usr/local/pgsql/bin/createdb -E UTF8 -T template0 bdteste
>
>
> ------------------------------
>
> _______________________________________________
> pgbr-geral mailing list
> [email protected]
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
>
>
> Fim da Digest pgbr-geral, volume 34, assunto 75
> ***********************************************
>
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a