Commit 4a13d93320bff8d7710917f2443d6dbe01692a8f

Authored by Lucas Schmoeller da Silva
2 parents 6dd57c11 09ccfb5a
Exists in master

Merge pull request #70 from ieducativa/corrigido-encoding-api-deprecada-escola

Corrigido encoding api deprecada escola.
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 }