MySQL or PHP is appending a  whenever the £ is used

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

    If you save line "The £50,000 Development Challenge" in two different data type column i.e. "varchar" & "text" field.

    Before i save i have replaced the symbol with html equi value using following function. str_replace("£", "£", $title);

    You will find that value stored in text fields is £ where as in varchar its "£".

提交回复
热议问题