You're right, I wanted to know the default charset. We recommend to use UTF8 editor, and if you use UTF8 charset you can't invoke setEncodeUTF8 because PHP has error if you encode an UTF8 string.
Please send us your script http://www.phpdocx.com/contact. Don't paste the code because we need to check your file not just content.
Regards.