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.

相关文章: