removing strange characters from php string

前端 未结 14 1157
忘了有多久
忘了有多久 2021-01-31 17:45

this is what i have right now

Drawing an RSS feed into the php, the raw xml from the rss feed reads:

Paul’s Confidence

The ph

14条回答
  •  甜味超标
    2021-01-31 18:29

    Many Strange Character be removed by applying mysqli_set_charset($con,"utf8"); below the mysql connection code.

    but in some circumstances of removing this type strange character like â€

    we need to use: $title = ' Stefen Suraj'; $newtitle = preg_replace('/[^(\x20-\x7F)]*/','', $title); echo $newtitle;

    Output will be: Stefen Suraj

提交回复
热议问题