This strips out horrible MS word characters.
Just keep fine tuning it until you get what you need, you'll see ive commented some out which caused problems for me.
There could be some that need adding in, but its a start to anyone who wishes to make their own custom function.
<?php
function msword_conversion($str)
{
$str = str_replace(chr(130), ',', $str); $str = str_replace(chr(131), 'NLG', $str); $str = str_replace(chr(132), '"', $str); $str = str_replace(chr(133), '...', $str); $str = str_replace(chr(134), '**', $str); $str = str_replace(chr(135), '***', $str); $str = str_replace(chr(136), '^', $str); $str = str_replace(chr(137), 'o/oo', $str); $str = str_replace(chr(138), 'Sh', $str); $str = str_replace(chr(139), '<', $str); $str = str_replace(chr(145), "'", $str); $str = str_replace(chr(146), "'", $str); $str = str_replace(chr(149), '-', $str); $str = str_replace(chr(150), '-–', $str); $str = str_replace(chr(151), '--', $str); $str = str_replace(chr(154), 'sh', $str); $str = str_replace(chr(155), '>', $str); $str = str_replace(chr(159), 'Y', $str); $str = str_replace('°C', '°C', $str); $str = str_replace('£', '£', $str);
$str = str_replace("'", "'", $str);
$str = str_replace('"', '"', $str);
$str = str_replace('–', '–', $str);
return $str;
}
?>