david 12 years ago
parent
commit
0860d236ae
1 changed files with 3 additions and 6 deletions
  1. 3 6
      index.php

+ 3 - 6
index.php

@@ -1,10 +1,7 @@
-<?php
-header('Content-Type: text/html; charset=UTF-8');
-?>
+<?php header('Content-Type: text/html; charset=UTF-8'); ?>
 <!doctype html>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-
     <script src="js/jquery-1.10.2.js">
     </script>
     <script type="text/javascript">
@@ -341,7 +338,7 @@ OBJETIVOS DEL CURSO: Obtener los conocimientos teóricos y prácticos en el áre
 			$contenido->bind_result($nombre, $telefono, $direccion, $localidad, $provincia, $pais );
 			while ( $contenido->fetch() ) {
                 $internacional = ($zona=="Internacional" ? "<td>$pais</td>" : ""); //internacional
-				echo "
+				echo utf8_encode("
 					<tr>
                       $internacional
 					  <td>$provincia</td>
@@ -349,7 +346,7 @@ OBJETIVOS DEL CURSO: Obtener los conocimientos teóricos y prácticos en el áre
 					  <td>$nombre</td>
 					  <td>$direccion</td>
 					  <td>$telefono</td>
-					</tr>";
+					</tr>"); //TODO FIXME: Convertir lo de la tabla, o lo que se agregue en UTF8 va a tener doble encoding y no va a funcionar
 			}
 			echo "</tbody></table></div>";
 		}