ms word - OpenTBS and Special Characters (PHP) -


i'm using opentbs modify word templates php. need update strings in word document values have in mysql database. working well, when have special characters such é, à, ô, outputs sequence of weird caracters.

for example é gives me é.

anybody knows how fix that?

thanks

by default, opentbs assumes data merged ascii encoded. data utf-8 encoded, have specify when loading template.

example:

$tbs->loadtemplate('document.docx', opentbs_already_utf8); 

you have check php script utf-8 encoded.

more details given in manual.


Comments

Popular posts from this blog

sql server - NHibernate incorrectly creating ManyToMany table - Cannot define PRIMARY KEY constraint on nullable column error -

All overlapping substrings matching a java regex -

c++ - Using OpenSSL in a multi-threaded application -