WP plugin 文件編碼

又是一篇備忘筆記。
試著寫 wordpress 的 plugin, 當然從helloworld開始囉。本來一切還正常,不知何時忽然發現後台切換頁面時都會變空白,看來是php錯誤造成exit吧。停掉plugin就沒事了,所以當然問題就是這helloworld,但把幾乎全部的東西都dump光了還是照錯不誤實在太可疑了。最後終於發現兇手是: 文件編碼為UTF-8。(天音: 什麼?!不能用UTF-8是要怎樣!) 解答: 換成UTF-8 no BOM就可以了。(;´Д⊂) アウ…

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>