RES: RES: RES: converter ascii para utf8

"Santiago - NSR" <tatu-GTBGvTVrc0RfyO9Q7EP/[email protected]>
Newsgroups gmane.comp.db.postgresql.brasil
Message-ID <00a301d337c7$fb65d1d0$f2317570$__43253.7600667731$1506541034$gmane$org@com.br>
Resolvi na unha....com a função abaixo. Tive que incluir alguns caracteres especiais a mais e foi embora....

Santiago

-----Mensagem original-----
De: pgbr-geral [mailto:[email protected]] Em nome de Osvaldo Kussama
Enviada em: quarta-feira, 27 de setembro de 2017 13:53
Para: Comunidade PostgreSQL Brasileira
Assunto: Re: [pgbr-geral] RES: RES: converter ascii para utf8

Em 27/09/2017, Santiago - NSR<[email protected]> escreveu:
> Bom dia. o banco está em ASCII. Necessito passar para UTF8. Quando uso a
> opção -E UTF8 (do pg_dump) da erro...(ao contrario do que escribi).
> Fiz uma função usando o "translate", estou migrando tabela a tabela e está
> dando certo...
>
> resSTR_	=
> translate($1,	'áàâãäåaaaÁÂÃÄÅAAAÀéèêëeeeeeEEEÉEEÈìíîïìiiiÌÍÎÏÌIIIóôõöoooòÒÓÔÕÖOOOùúûüuuuuÙÚÛÜUUUUçÇñÑýÝ',
>
> 			'aaaaaaaaaAAAAAAAAAeeeeeeeeeEEEEEEEiiiiiiiiIIIIIIIIooooooooOOOOOOOOuuuuuuuuUUUUUUUUcCnNyY'
> 			);
>


_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.