EasyCFM.COM ColdFusion Forums / General Discussion / Replace strange Microsoft Word

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: Replace strange Microsoft Word

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts last

epsnowden
12-07-2006 @ 11:47 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 16
Joined: Jun 2004

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
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Administrator
Posts: 4262
Joined: Oct 2002

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
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 16
Joined: Jun 2004

This is still leaving behind a strange box with an x in it. Any thoughts on
how to remove that?



Website Designed and Developed by Pablo Varando.