setEncodeUTF8

setEncodeUTF8

BASIC / ADVANCED / PREMIUM

Enforces UTF-8 encoding of the Word document contents.

Description
public setEncodeUTF8 ()

This method enforces the UTF-8 encoding of all contents.

If the contents are already UTF-8 encoded this method may cause double encoding.

Since v3.2 one may set up the option encode_to_UTF8 to true in the config/phpdocxconfig.ini file. If so, phpdocx checks if the contents are already UTF-8 encoded to avoid double encoding. Anyhow, we strongly recommend to use UTF-8 compatible editors and prepare all data coming from external sources so it is UTF-8 encoded.

Return values

Void.