MySQL or PHP is appending a  whenever the £ is used

前端 未结 7 2131
情话喂你
情话喂你 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:29

    In PHP, another small scale solution is to do a string conversion on the returned utf8 string:

    print iconv('UTF-8', 'ASCII//TRANSLIT', "Mystring â"); //"Mystring "
    

    Or in other platforms fire a system call to the inconv command (linux / osx)

    http://php.net/manual/en/function.iconv.php#83238

提交回复
热议问题