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.

posted @ 2010-11-24 10:38  春哥也编程  阅读(869)  评论(0编辑  收藏  举报