MySQL or PHP is appending a  whenever the £ is used

前端 未结 7 2120
情话喂你
情话喂你 2020-12-01 15:05

Answers provided have all been great, I mentioned in the comments of Alnitak\'s answer that I would need to go take a look at my CSV Generation script because for whatever r

7条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-01 15:50

    You need to serve your HTML in utf-8 encoding (actually everyone needs to do this I think!) Header like:

    Content-Type: text/html; charset=UTF-8

    Or the equivalent. Double check the details though. Should always be declaring the charset as a browser can default to anything it likes.

提交回复
热议问题