I need to clean a string that comes (copy/pasted) from various Microsoft Office suite applications (Excel, Access, and Word), each with its own set of encoding.
I\'m
By combining ord() with substr() on my string containing \u00a0, I found the following curse to work:
ord()
substr()
$text = str_replace( chr( 194 ) . chr( 160 ), ' ', $text );