PHP Classes

Non ASCII characters

Recommend this page to a friend!

      PHP DOCX Template  >  All threads  >  Non ASCII characters  >  (Un) Subscribe thread alerts  
Subject:Non ASCII characters
Summary:Error: invalid XML character on DOC opening
Messages:3
Author:Marco Pivanti
Date:2018-06-18 10:18:37
 

  1. Non ASCII characters   Reply   Report abuse  
Picture of Marco Pivanti Marco Pivanti - 2018-06-18 10:18:37
Hi,

eccellent work, I notice that if you try to replace using command

$docx->set('a_text', 'à' );

a character like the à or other, class save .docx but when you try to open it, Work give the error in Summary.

Do you have some advice on how manage this characters?

  2. Re: Non ASCII characters   Reply   Report abuse  
Picture of Marco Pivanti Marco Pivanti - 2018-06-18 10:28:37 - In reply to message 1 from Marco Pivanti
Ok, I remembered I used an base64_encode to save in mysql fields. So it try to save in docx an unicode value.

  3. Re: Non ASCII characters   Reply   Report abuse  
Picture of Sergey Shuchkin Sergey Shuchkin - 2018-06-18 10:44:15 - In reply to message 2 from Marco Pivanti
Please use UTF-8 encoding !!!