How to set UTF-8 encoding for a PHP file

后端 未结 7 1473
-上瘾入骨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:18

    HTML file:

    <head>
    
    <meta charset="utf-8">
    
    </head>
    

    PHP file :

    <?php header('Content-type: text/plain; charset=utf-8'); ?>
    
    0 讨论(0)
提交回复
热议问题