2017-08-18 11:03 GMT-03:00 Zan <[email protected]>:
> On 18/08/2017 10:57, Douglas Fabiano Specht wrote:
>
>> bom dia
>> ja tive esse problema, e utilize a seguinte função.
>>
>>
>>
>> --função para substituir caracteres especiais
>>
>> CREATE OR REPLACE FUNCTION retira_acentuacao1(p_texto text)
>> RETURNS text AS
>> $BODY$
>> Select translate($1,
>> 'áâãäåaaaÁÂÃÄÅAAAèééêëeeeeeEEEÉEEìíîïìiiiÌÍÎÏÌIIIóôõöoooÒÓÔÕ
>> ÖOOOùúûüuuuuÙÚÛÜUUUUçÇ<>!@#$%¨*()_+={}[]?;:|*~^´`¨æÆø£Øƒªº¿®½¼ßµþýÝ€§¬©¢¥¤ðÐÞÞ¶
>> ', --no final tem tbm o 144 da tabela ascii
>>
>> 'áâãaaaaaÁÂÃAAAAAèééêeeeeeeEEEÉEEìíîiìiiiÌÍÎIÌIIIóôõooooÒÓÔÕOOOOùúûuuuuuÙÚÛUUUUUçÇ
>> '
>> );
>> $BODY$
>> LANGUAGE sql VOLATILE
>> COST 100;
>>
>
> Douglas, no meu caso não deu certo. Este bendito caractere (\342\200\213)
> é uma "?".
Na função informada pelo colega, não existe o caracter '\', você terá
que acrescentar na função!?!
>
>
> _______________________________________________
> pgbr-geral mailing list
> [email protected]
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
>
*Lembre-se de que ao evitar o desperdício, além de economizar dinheiro com
papel e tinta, você também ajuda o nosso planeta. Bom para seu bolso,
melhor para o mundo!*
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral