Commit 09ccfb5a8a85555e299c0253843557a4745d3058

Authored by Lucas D'Avila
1 parent ea275e51
Exists in master

Corrigido encoding api deprecada escola.

* Em alguns servidores a acentuação é exibida incorretamente.
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
ieducar/intranet/educar_escola_xml2.php
@@ -32,7 +32,7 @@ @@ -32,7 +32,7 @@
32 require_once 'Portabilis/Utils/DeprecatedXmlApi.php'; 32 require_once 'Portabilis/Utils/DeprecatedXmlApi.php';
33 Portabilis_Utils_DeprecatedXmlApi::returnEmptyQueryUnlessUserIsLoggedIn(); 33 Portabilis_Utils_DeprecatedXmlApi::returnEmptyQueryUnlessUserIsLoggedIn();
34 34
35 - echo "<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n<query xmlns=\"sugestoes\">\n"; 35 + echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<query xmlns=\"sugestoes\">\n";
36 if( is_numeric( $_GET["ins"] ) ) 36 if( is_numeric( $_GET["ins"] ) )
37 { 37 {
38 $db = new clsBanco(); 38 $db = new clsBanco();
@@ -63,7 +63,7 @@ @@ -63,7 +63,7 @@
63 while ( $db->ProximoRegistro() ) 63 while ( $db->ProximoRegistro() )
64 { 64 {
65 list( $cod, $nome ) = $db->Tupla(); 65 list( $cod, $nome ) = $db->Tupla();
66 - $nome = htmlspecialchars($nome); 66 + $nome = htmlspecialchars(Portabilis_String_Utils::toUtf8($nome));
67 echo " <escola cod_escola=\"{$cod}\">{$nome}</escola>\n"; 67 echo " <escola cod_escola=\"{$cod}\">{$nome}</escola>\n";
68 } 68 }
69 } 69 }