New question

Question:

Date: 12-03-2015 04:18:43 (In Spanish)

Libreria PHPExcel[Resolved]

La información la levanta de la BD y me tira el Excel 10 puntos, salvo aquellos registros (de tipo string) con acento, º, me pasa un valor booleano FALSO ...
Entiendo que tengo un problema con el charset UTF-8 o 8159 en el herad o un cambio en la librería de idiomas (No se desde donde modificarla)
¿Alguien me puede dar una mano?
Tags: Excel - Library - PHP - PHPExcel - Question Votes: 1 - Answers: 3 - Views: 21 Share on: Google Facebook Twitter LinkedIn Link
 

Answers:

  • Date: 12-03-2015 07:11:24 puedes hacer lo siguiente cuando estas desplegando el valor

    $row['Name'] = utf8_encode($row['Name'])

    o puedes

    agregar un meta en el head de la pagina

    <meta charset="utf-8">
      Votes: 1 - Link answer
     
  • Date: 12-03-2015 07:41:46 Ante todo gracias Faustino por tu resuesta.
    En este momento he hecho pruebas con estos 3 y ninguno me devolvio un caracter con acento:

    header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset = utf8');

    header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset = utf8mb4');

    header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset = charset=ISO-8859-1');
      Votes: 0 - Link answer
     
  • Date: 12-03-2015 07:46:31 Faustino ...

    Probe con $row['Name'] = utf8_encode($row['Name']) - (codigo que me pasate)

    Funciono perfectamente
    Desde ya muy agradecido.
      Votes: 1 - Link answer
     
To actively participate in the community first must authenticate, enter the system.Sign In
 
frjcbbae garagebible.com