I got a messy bunch of JSON data to import into my database (for further purposes). When i checked them out (opened in a Text Editor), they contain so many weird (gibberish) characters like:
- \u00a0
For example, data.json
:
[{"title":"hello world!","html_body":"<p>Hello\u00a0 from the\u00a0 other side.\u00a0 <\/p>"}]
And then, obviously, below code simply WON'T work:
$clean = str_replace("\u00a0", "", $string);
Despite whatever those character are for, how can i get rid of them anyway please?