php zend framework 生成 pdf 出现中文乱码

change your php document encoding to 'ANSI'

for example: you can rename your php document to txt document,

and open your txt document,and save as to ANSI

another way:

you can use a function in php 5.0

iconv('UTF-8','GBK','中文') 

that's mean change ‘中文’ encoding 'UTF-8' to 'GBK'

it's easy to use this function before you want to change chinese encoding.

原文地址:https://www.cnblogs.com/zcy_soft/p/1886267.html