I have a string link this :
"Special Word ±"
I want to replace the char ±
with +-
. I use str_replace('±','+-',"Special Word ±")
but the result still shows:
"Special Word ±"
This might be a problem with PHP script file encoding. Try to convert your script encoding to for example "UTF8"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.