Commit d7504cc0cdbcd85760c46696781803c6e78db910
1 parent
2525454f
Exists in
master
and in
7 other branches
Corrige a busca com caracteres acentuados
Showing
2 changed files
with
4 additions
and
4 deletions
Show diff stats
admin/admin.db
No preview for this file type
classesphp/classe_atributos.php
@@ -711,10 +711,10 @@ class Atributos | @@ -711,10 +711,10 @@ class Atributos | ||
711 | if ($filtro != ""){ | 711 | if ($filtro != ""){ |
712 | $l->setfilter(""); | 712 | $l->setfilter(""); |
713 | } | 713 | } |
714 | - $buscas = "ÁÃ�ÕÔá�ãâ��ôõú�íéêç"; | ||
715 | - $buscaUTF = $this->converte($buscas); | ||
716 | - $trocas = "AAOOOaaaaoooouuieecAAOOOaaaaoooouuieec"; | ||
717 | - $buscas = $buscas.$buscaUTF; | 714 | + $b = "ÁÃÕÓÔáãâàóõôòúûíêéç"; |
715 | + | ||
716 | + $trocas = "AAOOOaaaaoooouuieecAAOOOaaaaoooouuieecAAOOOaaaaoooouuieec"; | ||
717 | + $buscas = b.(html_entity_decode($b,ENT_NOQUOTES,'UTF8')).(html_entity_decode($b,ENT_NOQUOTES,'ISO8859-1')); | ||
718 | $sopen = $l->open(); | 718 | $sopen = $l->open(); |
719 | if($sopen == MS_FAILURE){ | 719 | if($sopen == MS_FAILURE){ |
720 | return "erro"; | 720 | return "erro"; |