How to set UTF-8 encoding for a PHP file

后端 未结 7 1493
-上瘾入骨i
-上瘾入骨i 2020-11-28 08:24

I have a PHP script called :

http://cyber-flick.com/apiMorpho.php?method=getMorphoData&word=kot

That displays some data in p

7条回答
  •  情书的邮戳
    2020-11-28 09:07

    PHP, by default, always returns the following header: "Content-Type: text/html" (notice no charset), therefore you must use

    
    

提交回复
热议问题