Hi everyone I am trying to replace some specific characters in a file but I am not being able to do this. It is a type of apostrophe...
For example in the following text excerpt
<td class="card" align='left'>
Night’s Whisper
</td>
I would like to replace the
’
in the word Night. However when putting the file contents into a string (via fopen and co) and the using
$contents = str_replace("’","'",$contents);
nothing happens, and nothing is replaced. How can I replace this type of characters. I have very little idea about text encoding and the likes so any help will be heavily appreciated.
Thanks a lot