Skip navigation
Currently Being Moderated

Convert smart quotes and other high ascii characters to HTML

Jun 29, 2009 9:53 AM

I'd like to set up Dreamweaver CS4 Mac to automatically convert smart quotes and other high ASCII characters (m-dashes, accent marks, etc.) pasted from MS Word into HTML code. Dreamweaver 8 used to do this by default, but I can't find a way to set up a similar auto-conversion in CS 4.  Is this possible?  If not, it really should be a preference option. I code a lot of HTML emails and it is very time consuming to convert every curly quote and dash.

 

Thanks,

 

Robert

Digital Arts

 
Replies
  • Currently Being Moderated
    Oct 13, 2009 6:30 PM   in reply to Robsedor

    I am having the same problem copying from Word 2007 to Dreamweaver CS4. Never had this problem before. I am noting it is using charset=utf-8 in the

    Content-type. It looks ok in CS4 but when I post it to Blackboard I get all the strange codes.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 30, 2010 2:42 PM   in reply to Robsedor

    This can be done by using one of  those utility "text expander" programs where you type in a word or two  and it i nserts  whatever boilerp late text you have preset. Set that up      s o that it inserts a forward curly quote when you type one keyboard command, a reverse c. 1. when you typ e  another, etc. I know, it's a shame that Dreamweaver requires t his work aro und, you  're very right to say that it should be able to handle insertion of individual  unicode glyphs. I guess we just h ave to be thankful that they enabled Unicode with  CS3.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 3, 2010 7:45 AM   in reply to Robsedor

    I have the same question as you and am wondering if you found a work around? I am so frustrated by it that I'm considering just going back to my old version of Dreamweaver.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 3, 2010 9:27 AM   in reply to nicole_withrow
     
    |
    Mark as:
  • Currently Being Moderated
    Aug 3, 2010 12:17 PM   in reply to Dana Sutton

    I have found out by changing my Edit > Preferences > Fonts > Western European it seems to solve the problem. I can copy anything from Word 2007 into Dreamweaver CS5 and it turns out ok.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 3, 2010 1:11 PM   in reply to cedar4

    Thanks for the suggestion - I tried that but it still doesn't work

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 3, 2010 2:13 PM   in reply to nicole_withrow

    Western European = ISO-8859!

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 3, 2010 3:28 PM   in reply to cedar4

    I too am having a related problem with Dreamweaver CS5 (running under Windows XP), having just upgraded from CS4 (which works fine for me) this week.

     

    In my case, I like to convert to typographic quotes etc. in my text editor, where I can use macros I've written to speed the conversion process. So my preferred method is to key in typographic letters & symbols by hand (using ALT + ASCII key codes typed in on the numeric keypad) in my text editor, and then I copy and paste my *plain* ASCII text (no formatting other than line feeds & carriage returns) into DW's DESIGN view. DW displays my high-ASCII characters just fine in DESIGN view, and writes the proper HTML code for the character into the source code (which is where I mostly work in DW).

     

    I've been doing it this way for years (first with GoLive, and then with DW CS4) and never encountered any problems until this week, when I upgraded to DW CS5.

     

    But the problem I'm having may be somewhat different than what others have complained of here.

     

    In my case, some high-ASCII (above 128) characters convert to HTML just fine, while others do not.

     

    E.g., en and em dashes in my cut-and-paste text show as such in DESIGN mode, and the right entries

     

        –
        —

     

    turn up in the source code. Same is true for the ampersand

     

        &

     

    and the copyright symbol

     

        ©

     

    and for such foreign letters as the e with acute accent (ALT+0233)

     

        é

     

    What does NOT display or code correctly are the typographic quotes. E.g., when I paste in (or special paste; it doesn't seem to make any difference which I use for this) text with typographic double quotes (ALT+0147 for open quote mark and ALT+0148 for close quote mark), which should appear in source code as

     

        “[...]”

     

    DW strips out the ASCII encoding, displaying the inch marks in DESIGN mode, and putting this

     

        "[...]"

     

    in my source code.

     

    The typographic apostrophe (ALT+0146) is treated differently still. The text I copy & paste into DW should appear as

     

        [...]’[...]

     

    in the source code, but instead I get the foot mark (both in DESIGN and CODE views):

     

        [...]'[...]

     

    I've tried adjusting the various DW settings for "encoding"

     

        MODIFY > PAGE PROPERTIES > TITLE/ENCODING > Encoding:

     

    and for fonts

     

        EDIT > PREFERENCES > FONTS

     

    but switching from "Unicode (UTF-8)" to "Western European" hasn't solved the problem (probably because in my case many of the higher ASCII characters convert just fine). So I don't think it's the encoding scheme I use that's the problem.

     

    Whatever the problem is, it's caused me enough headaches and time lost troubleshooting that I'm planning to revert to CS4 as soon as I post this.

     

    Deborah

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 5, 2011 9:28 AM   in reply to Robsedor

    Go to Modify|Page Properties|Title/Encoding and change THAT to Western European.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 28, 2011 10:56 AM   in reply to Ekonofast

    Don't know about how this

     

    > Go to Modify|Page Properties|Title/Encoding and change THAT to Western European.

     

    worked for others, but it didn't fix my problem.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 3, 2011 4:47 PM   in reply to Robsedor

    I am having the same trouble. Copying text from Mac OS X Mail or Entourage to Dreamweaver never used to give me junk characters when using CS3. I recently upgraded to CS5 and now my bullets and dashes get whacked. They look alright in design mode but turn to garbage when viewed in a web browser. What is the dealybob, Adobe?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 23, 2011 8:05 AM   in reply to Robsedor

    Here is an article I found to be useful. It suggests that you double check to be sure that you're using the same character encoding, throughout the "life" of your text, from word processor, to Dreamweaver, CMS, etc.

     

    http://www.garfieldtech.com/blog/stupid-quotes

     

    The article also contains links to other useful resources.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points