I don't think so without a serious hack, i.e. hard-coding all of the entity
values for every possible non-standard character, and then doing a search
and replace on them. The only two solutions I can think of are:

a) Cut and paste into WordPad to remove 90% of the junk, then cut and paste
from WordPad into the browser field.
b) Get HTML Tidy ... it's free!
        Info: http://www.w3.org/People/Raggett/tidy/
        Source Code: http://tidy.sourceforge.net/

HTML Tidy is so darn useful, and has extensions that focus specifically on
MS Word junk. Outside of that, we're stuck in a Microsoft World right now,
so we just have to suck it up and do the best we can!

HTH,
Dave.

----- Original Message -----
From: "Carlisle, Eric" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, February 18, 2002 04:47 PM
Subject: RE: MS Word Funky Quotes


> Sorry, I should have clarified moreso.
> A lot of the time, I don't have control over the content entry.  I get
> content from a database and have to maintain the look of the output...
> e.g
> the blocky characters that an MS Word quote causes in a web browser.
> Can
> ColdFusion catch these non-standard characters and replace them?
>
> Thanks :)
>
> EC
>
>
> -----Original Message-----
> From: Jeffry Houser [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 18, 2002 4:37 PM
> To: CF-Talk
> Subject: Re: MS Word Funky Quotes
>
>
> At 04:20 PM 02/18/2002 -0500, you wrote:
> >Seems like after I copy and paste content form MS Word, there's always
> time
> >spent turning the MS Word single and double quotes into real ones
> (that
> >don't produce garbage on the screen.  Is there some kind of RegEx I
> can use
> >to find and replace such content in a CF Script.  Can CF know what an
> MS
> >Word quote is?
>
>   Do you mean you are pasting into CF Studio?
>   I'd say don't use Word, but if you are not the one creating the
> content,
> you should be happy just to get it in a digital format.
>
>   Try pasting into Notepad before CF Studio.
>
>   Just a thought.
>
>
> --
> Jeffry Houser | mailto:[EMAIL PROTECTED]
> Need a Web Developer?  Contact me!
> AIM: Reboog711  | Fax / Phone: 860-223-7946
> --
> My Books: http://www.instantcoldfusion.com
> My Band: http://www.farcryfly.com
>
> 
______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to