From: | "Ricardo Navarro" <richard_site(at)planeacion(dot)unam(dot)mx> |
---|---|
To: | <peinebasto(at)hotmail(dot)com> |
Cc: | <pgsql-es-ayuda(at)postgresql(dot)org> |
Subject: | RE: Cambiar Caracteres En Toda La Base de Datos |
Date: | 2006-06-06 15:57:37 |
Message-ID: | 000801c68981$ef175cb0$ea27f884@ricardo |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
A mi me sirvió una función como esta, hecho en php. Podrías ocupar algo
parecido
function acute_a_acentos($text)
{
$t = $text;
$i = 0;
$fixes = array( 'ç','ê','ã','õ',
'& ',''',' ','ñ',
'á','Á','à','À','â','Â','ã','Ã',
'é','É','è','È','ê','Ê','ë','Ë',
'í','Í',
'ó','Ó','ò','Ò','ô','Ô','õ','Õ',
'ú','Ú','ü','Ü',
'&G. ');
$faults = array( 'ç','ê','ã','õ',
'& ',"'",'|','ñ',
'á','Á','à','À','â','Â','ã','
Ã',
'é','É','è','È','ê','Ê','ë','&E
uml;',
'í','Í',
'ó','Ó','ò','Ò','ô','Ô','õ','
Õ',
'ú','Ú','ü','Ü',
'&G. ');
while ($i<count($faults))
{
$t = str_replace($faults[$i],$fixes[$i],$t);
$i++;
}
return $t;
}
From | Date | Subject | |
---|---|---|---|
Next Message | Juan Martínez | 2006-06-06 16:54:04 | Re: Dominios |
Previous Message | Alvaro Herrera | 2006-06-06 14:29:52 | Re: error : Canceling Query due to user request |