Em 11/03/09, JacksonWeber<[email protected]> escreveu:
>
> Eu segui seus passos mas apresenta um erro:
>
> ERROR:  encoding conversion from SQL_ASCII to ASCII not supported
>
> A Codificação do database é SQL_ASCII
>


NUNCA use codificação SQL_ASCII. É um tiro em seu pé.
Isto significa que ele interpreta apenas os caracteres na faixa 1 -
127. Todos os outros caracteres não são validados.

http://www.postgresql.org/docs/current/interactive/multibyte.html
"The SQL_ASCII setting behaves considerably differently from the other
settings. When the server character set is SQL_ASCII, the server
interprets byte values 0-127 according to the ASCII standard, while
byte values 128-255 are taken as uninterpreted characters. No encoding
conversion will be done when the setting is SQL_ASCII. Thus, this
setting is not so much a declaration that a specific encoding is in
use, as a declaration of ignorance about the encoding. In most cases,
if you are working with any non-ASCII data, it is unwise to use the
SQL_ASCII setting, because PostgreSQL will be unable to help you by
converting or validating non-ASCII characters."

Para descobrir qual o caractere não está sendo corretamente
interpretado você precisa descobrir qual o encoding do cliente que
incluiu/alterou o dado quando da atualização de seu banco.

Osvaldo
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a