Topic: Replace strange Microsoft Word

epsnowden    -- 12-07-2006 @ 11:47 AM
  I'm trying to create a function to replace all the strange characters that
come from Microsoft Word, but it doesn't seem to work. Any thoughts?

function replaceWordCharacters(str) {
str = replace(str, chr(8217), chr(39), "all");
str = replace(str, chr(8216), chr(39), "all");
str = replace(str, chr(8220), chr(34), "all");
str = replace(str, chr(8221), chr(34), "all");
str = replace(str, chr(8211), "-", "all");
str = replace(str, chr(13), "<br/>", "all");
return str;


CJ    -- 12-07-2006 @ 12:31 PM

@ #coldfusion/DALNet

Teachers open the door. You enter by yourself.
—Chinese Proverb

epsnowden    -- 12-07-2006 @ 3:48 PM
  This is still leaving behind a strange box with an x in it. Any thoughts on
how to remove that?

EasyCFM.COM ColdFusion Forums :