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?
Thanks!

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");
WriteOutput(str);
return str;
}


Eric


CJ    -- 12-07-2006 @ 12:31 PM
  http://www.cflib.org/udf.cfm?id=725&enable=1

-CJ-
@ #coldfusion/DALNet
http://charlie.griefer.com

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 : http://archive.easycfm.com/forums
Topic: http://archive.easycfm.com/forums/viewmessages.cfm?Forum=8&Topic=10599