Now I had this working a few weeks ago but something must have changed and now it no longer works. Here's my code, if someone could help me out and spot any errors or give advice, that would be brilliant It just responds with the original string, nothing changed. $pos1[1] = str_replace("°","°",$pos1[1]); echo $pos1[1]; PHP:
That code works perfectly fine. be sure to check that $pos1[1] contains the ° for sure BEFORE the str_replace
Really weird how it wouldn't work, I even tested that piece of code in a separate file and set the variable myself. $pos1[1] definitely contained it as I was displaying it beforehand so I could compare the result. Just wouldn't work when in the main file, ended up using htmlentities() which has worked fine, oddly.