CS5: Pasting smart quotes into code view problem

Hi all,
In my blogging workflow, I copy the blog text from from MacJournal into the code view in Dreamweaver CS5.  In CS3, it seems that DW allowed the left & right smart and unicode quotes to be pasted in untouched.  However, DW CS5 seems to be converting all single ‘ & ’ to the ASCII ' and all “ & ” to ASCII ".  Is there a way to turn this off?
I don't want to paste the text into the design view because I don't want DW to auto format the text.  I got some specific formatting that I like to do.
Thanks!
Steven

Yes, the appropriate meta tag is in place.  In Preferences, UTF-8 is selected under Fonts.  Try pasting:
“Test”
into the code view and see what happens.  Hmm, Just tried pasting the above into the Design View and the same thing happened.  The curly quotes where changed into straight quotes.  BTW, I'm runn ing DW under Mac OS X Lion.
I pasted the same text in another app, TextEdit, and the curly quotes pasted just fine.
I need the curly quotes because I change them into ‘, ’, “, and ” (‘ ’ “ ”) for compatibility with older browsers (pre-IE6).  Yes, my site has been visited by such older browsers.
Thanks!
Steven

Similar Messages

  • Pasting smart quotes and apostrophes in code view.

    Sine upgrading to Dreamweaver CS5, I haven't been able to copy/paste smart quotes and apostrophes into code view without them automatically being converted to straight quotes.
    For example, the following sentence (notice the curly quotes):
    John’s new song is called “DW Blues”
    would get pasted into Code View as:
    John's new song is called "DW Blues"
    Notice the smart quotes and apostrophe are replaced with single and double ticks, or "straight quotes."  While this seems like a minor detail, it's extremely important to our writers and editors to have them appear on the website exactly as typed.
    If I do the same copy/paste in Design View (doc type is XHTML Transitional), it appears as:
    John's new song is called "DW Blues"
    The characters are still replaced, and the straight quotes are then entity encoded (as expected).
    This doesn't happen with other valid UTF-8 characters like ™, ®, —, etc., or with any other code editors I've used, including DW CS3.
    Is there a hidden preference somewhere to disable this "feature," or is it just a bug?
    Please help!

    It's now 4 years since jsparacio posted this, and I just wanted to let everyone know that I had -- and am still having -- the exact same problem with Dreamweaver CS5 (running first under Windows XP, then Windows 7, and now again with Windows 8.1). So it's not just Macs that are affected.
    FWIW, I have set my DW CS5 Paste preferences to the 3rd of 4 options available
        1 - Text Only
        2 - Text With Structure
        3 - Text With Structure Plus Basic Formatting
        4 - Text With Structure Plus Full Formatting
    in the EDIT > PREFERENCES > Copy/Paste Preferences dialog box.
    But the Paste Special command ignores this setting, giving me only the first 2 options from which to choose, with option 2 the default selection for Paste Special operations (options 3 and 4 are grayed out, and can't be selected).
    According to David Sawyer McFarland's _Dreamweaver CS5: The Missing Manual_ (O'Reilly Media, 2010), the reason these are grayed out is because I am pasting unformatted ASCII text which I generated in a program editor called "UltraEdit":
        "... Choose EDIT > PASTE SPECIAL to open the Paste Special window. Here, you can choose which of the four techniques you wish to use ... sort of. You're limited to what Dreamweaver can paste. For non-Microsoft Office products, you can use only the first two options--the others are grayed out--whereas you can choose from any of the four with text copied from Word or Excel." (McFarland, p. 81)
    Regardless of such restrictions, standard copy-and-paste (CTRL+C followed by CTRL+V) works just fine for me using Dreamweaver CS4 (i.e., I have never needed to use the Paste Special command), but with DW CS5, neither Paste command (CONTROL+V or CTRL+SHIFT+V) works properly with typographic/curly/smart quotes.
    All typographic quotes -- ASCII-0146 and ASCII-0147 (double quote marks); plus ASCII-0145 and ASCII-0146 (single quote marks, for quotes within a quote) -- are converted to inch (" is entered in the code) and foot (' is entered in the code) marks when I copy-and-paste text with these characters into Dreamweaver's Design View.
    When I copy this same plain ASCII text directly into the code (rather than using Design View), typographic double open & close quotes are converted to the inch (") mark, and typographic single open & close quotes are converted to the foot (') mark.
    The beginning of this week, I installed Dreamweaver CS5, ver. 11.0, Build 4909 under Windows 8.1 OS on my new Ultrabook. I was hoping that under Windows 8.1, DW CS5's handling of typographic quotes might improve so that I can actually use this program that I purchased 4 years ago. Alas, no such luck: I continue to have the same problem I had when I first upgraded to Dreamweaver CS5 back in August 2010 (then running under Windows XP on my desktop computer).
    Back in August 2020, when I first asked about fixes, I was told to change the Title/Encoding setting of Page Properties to "Western European" -- which I tried, but it didn't work then, and it doesn't work now ... and even if it did, it wouldn't be a proper fix for the problem as I have plenty of good reasons for wanting my HTML page Title/Encoding set to Unicode (UTF-8), not Western European ("charset=iso-8859-1").
    The ability to copy-and-paste typographic quotes is such a big deal for me that I chose back in August 2010 to revert to Dreamweaver CS4, which I've been using ever since.
    It is *very* frustrating that, 4 years later, I still can't use this program, and shall be reverting to DW CS4, yet again.
    I continue to be completely flummoxed by this. Every other program with which I am familiar converts non-typographic quotes to typographic/curly/smart quotes ... never have I seen the process automated in reverse!

  • Help! Can't paste into code view or property inspector

    I'm experiencing a weird and extremely annoying bug in Dreamweaver CS6 -- I can't paste text from outside apps into DW's code view or into the property inspector (such as URLs).
    Pasting doesn't work no matter the method: Ctrl + V, right-clicking or using the Edit menu. Pasting works normally in every other program. If I copy within Dreawmweaver, pasting works fine.
    Does anyone have a solution for this? I'm running Win 8 and DW 12.1 through Creative Cloud. Searching the forums, I see others have reported the same issue. Some have been able to fix it by deleting the configuration file; that didn't fix the issue for me. I'd like to try reinstalling DW, but the Adobe Application Manager doesn't seem to allow that.
    I began noticing this bug about two weeks ago. That might have been about the same time I updated to 12.1. Can anyone help?
    Thanks,
    Cory K.

    Adding to my last post, I used a clipboard format inspector called nclip (http://code.google.com/p/nclip/) to see if I could find a pattern between "what works" and "what doesn't".
    There are two cases where I'm seeing paste-into-Dreamweaver CS6 fail:
    Paste into Code View fails, but Paste into Design View works!
    Paste into either Code View or Design View fails
    I went through the list of programs that worked and didn't worked, using nclip to show what clipboard formats were being saved from each working and non-working source. It appears that DreamWeaver CS6 as of January 9, 2013 doesn't accept the most basic text clipboard formats:
    CF_UNICODETEXT
    CF_TEXT
    CF-OEMTEXT
    CF_LOCALE
    If these are the only clipboard formats used by an app (for example, Window's venerable Notepad.exe), Dreamweaver doesn't appear to handle them. Most programmer-style text editors output just these formats, because they are presumed to be understood any application that handles text. These fail for both pasting into codeview and design view.
    Interestingly, Chrome browser fails the code view test, but it does work in design view! It outputs the four clipboard types above, plus one more:
    Custom Format: HTML Format
    Hypothesis 1: Any application that puts HTML Format on the clipboard will paste into design view, but not necessarily code view.
    Next, Visual Studio 2010 and Sticky Notes, which doesn't include HTML Format as a clip type, works for both code view and design view. They both output this type in addition to the basics:
    Custom Format: Rich Text Format
    Two programs that output Rich Text Format without HTML Format are Sticky Notes and WordPad. These both work with Code View and Design View. From these limited tests on my system, it appears that for Dreamweaver to accept a text paste from an outside program into Code View, that program must output Rich Text Format to the clipboard. Otherwise, it fails. Dreamweaver will accept HTML Format, but only in Design View. Firefox is an exception in that it don't export Rich Text Format, but still works with Code View. It might use OLE, though (Chrome doesn't seem to use OLE, and it breaks in code view).
    Hypothesis 2: Any application that puts Rich Text Format on the clipboard will paste into design view AND code view.
    If Dreamweaver is really ignoring the basic text clipboard formats, and it's not just my system configuration, then this is a bug. Probably something that got overlooked in testing.
    To reproduce on Dreamweaver 12.1 build 5966:
    Try copy/pasting text from Notepad.exe into Dreamweaver Code View (DWCV). This fails for me.
    Try copy/pasting text from WordPad.exe into DWCV. This works!
    Try copy/pasting text from Internet Explorer 9 or Firefox into DWCV. This works!
    Try copy/pasting text from Chrome. This fails to paste into Code View, but does paste into Design View
    The Code View workaround:
    Use Firefox or Internet Explorer for your browser if you're copy/pasting source code.
    If you're working from another text editor, try copy/pasting into intermediate programs Sticky Notes or WordPad, then copy/paste from there into Dreamweaver.
    So that is my experience on Windows 7 64-bit. Anyone else experiencing the same thing?

  • Converting MS-WORD characters such as smart quotes into standard quotes

    Hi,
    This is a problem when taking text from a MS Word file and pasting it into a browser editor. The Java code doesnt interpret these smart quotes correctly.
    Any ideas on how to convert these to standard characters that can be understood by Java
    Regards
    Chris

    sorry what i meant was an application called MorelloNot a web application, then? Doesn't run in a browser?
    If so, then where does Java come into this? Is Morello written in Java, or do you have a Java application that is interfacing with Morello in some unspecified way? And where does the console come into it? You said that people were pasting text into Morello, so surely it isn't console-based?
    You clearly have an encoding problem but from your description it's impossible to tell where it arises or what you can do to fix it.

  • Dreamweaver code view problem with Turkish fonts

    All my preferences is set to Turkish encoding, but only at the code window Turkish characters aren't displayed right. If i type directly into the code window, everything is ok. but if i write something to design windowi the characters change automatically. i'm attaching a picture to show.
    thanks in advance.

    What you see there is not a problem. It's the expected result.
    When the Web first started, it supported only unaccented characters. So, to create letters like ö, it was necessary to use HTML entities, which is what you see in Code view.
    Nowadays, browsers support Unicode (UTF-8), which doesn't need to convert accented characters.
    Go into Preferences (from the Edit menu on Windows, Dreamweaver window on a Mac), and select the New Document category. Set encoding to UTF-8. To change existing pages, use Modify > Page Properties, and select Title/Encoding.
    With UTF-8, ö will still be ö in Code view.

  • Design / code view problem

    Hello, I have been using DW for a while now. I only use code
    view. When I first installed DW it asked for a default layout which
    I assumed had nothing to do with the viewing of code vrs design,
    just the layout. I chose coder layout.
    Now I am in DW and I need to look at the design in real time
    because I am having an issue that is causing me to go back and
    forth between browser and DW and it is getting old. So I looked up
    at the top where the toolbar is and design and split buttons are
    greyed out and inactive for me. I thought this was odd so I created
    a new basic HTML page to see if it would allow me access to these
    buttons but again, no.
    If I go to view menu same thing. I can only check code view.
    I can however go to the window menu and change the layout to
    designer, dual or coder but all this does is undock many of the
    panels. I still cannot see the visual element of my code.
    Can anyone please help me with this problem? At its most
    simplest form, I created an HTML page that says Hello World and I
    would like to be able to see this in both code and design view or
    switch easily between the two. But as of now, it does not seem like
    I have this ability. Again I am using DW 8
    Thank you for any help

    I see you are using DW8. OK....
    Also, changing from coder to designer won't affect the split
    view.
    Have you tried reinstalling? Has DW always been this way that
    you recall?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "tripwater2000" <[email protected]> wrote in
    message
    news:ebaf3a$hvk$[email protected]..
    > Hello, I have been using DW for a while now. I only use
    code view. When I
    > first
    > installed DW it asked for a default layout which I
    assumed had nothing to
    > do
    > with the viewing of code vrs design, just the layout. I
    chose coder
    > layout.
    >
    > Now I am in DW and I need to look at the design in real
    time because I am
    > having an issue that is causing me to go back and forth
    between browser
    > and DW
    > and it is getting old. So I looked up at the top where
    the toolbar is and
    > design and split buttons are greyed out and inactive for
    me. I thought
    > this was
    > odd so I created a new basic HTML page to see if it
    would allow me access
    > to
    > these buttons but again, no.
    >
    > If I go to view menu same thing. I can only check code
    view. I can however
    > go
    > to the window menu and change the layout to designer,
    dual or coder but
    > all
    > this does is undock many of the panels. I still cannot
    see the visual
    > element
    > of my code.
    >
    > Can anyone please help me with this problem? At its most
    simplest form, I
    > created an HTML page that says Hello World and I would
    like to be able to
    > see
    > this in both code and design view or switch easily
    between the two. But as
    > of
    > now, it does not seem like I have this ability. Again I
    am using DW 8
    >
    > Thank you for any help
    >

  • Dreamweaver 4 Code View Problem

    I have Windows Xp, and full version of Dreamweaver 4. I
    cannot view my pages in CODE VIEW, it does nothing. Please
    help.

    Shari31 wrote:
    > I have Windows Xp, and full version of Dreamweaver 4. I
    cannot view my pages in CODE VIEW, it does nothing. Please help.
    Dreamweaver 4 was notorious for the little icons getting
    'stuck' in one
    position or the other. Suddenly for no apparent reason they
    would clear
    themsleves.
    In the meantime you can get to code view by going
    'window'>'code
    inspector' try that and see what happens

  • MS Word smart quotes don't paste the same into Forms 10g as Forms 6i

    Hi all,
    I have users who write text in Microsoft Word and then cut-and-paste it into Oracle Forms.
    After some prodding by the developers, the users have switched to using the 10G version of their application instead of the 6i version.
    As a background you should know that Microsoft Word uses Smart Quotes by default, which you can turn off. Smart Quotes are different ascii characters than the ascii 39 single quote and ascii 34 double quote.
    When the users cut-and-paste the Microsoft Word text into the Forms 10G field, the single apostrophe smart quote does not convert to ascii 39. I wouldn't be surprised about this except that in Forms 6i the form does convert the single apostrophe smart quote into ascii 39.
    So if the users use the 6i Form they can cut-and-paste and the form/database has the character as ascii 39. If the users paste into Forms 10G then the database shows the character as ascii 191 (hex 0xBF), which is an inverted question mark.
    Does anyone know of any settings in Forms 10g to revert back to 6i functionality for this?
    Thanks much,
    Troy

    I am afraid that Jan is right.
    And this might be a bit of a hassle, since it might affect your forms. If you are using some standard Windows lettertype in your forms, though, you should be OK.
    Bare in mind, that you the NLS_LANG.characterset will have to be compatible between database and forms (the latter at both compiletime and runtime).
    Good Luck!
    Remco

  • Can't paste a paragraph into Dreamweaver code

    Hi there,
    Big thank you to whoever can help with this one...
    I am trying to paste a paragraph of text I have copied from a website, "Lorem Ipsum" in fact, but when I paste it within paragraph tags - or code view general - Dw returns the data as one long line with no paragraph formatting!!
    Bit of nightmare. I have tried pasting special - to include paragraph structure - but no luck fixing the issue.
    Would really appreciate your help.
    Thanks,
    Josh

    Does your Lorem ipsum contain paragraph tags?   If not, it's just plain text. 
    Paste this into Code View:
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.  Mauris vitae libero lacus, vel hendrerit nisi!  Maecenas quis velit nisl, volutpat viverra felis. Vestibulum luctus mauris sed sem dapibus luctus.  Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus.  Aenean tristique enim ut ante dignissim. </p>
    Paste this into Design View:
    Lorem ipsum dolor sit amet, consectetur adipiscing elit.  Mauris vitae libero lacus, vel hendrerit nisi!  Maecenas quis velit nisl, volutpat viverra felis. Vestibulum luctus mauris sed sem dapibus luctus.  Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus.  Aenean tristique enim ut ante dignissim.
    Nancy O.

  • Replacing quotes/apostrophes with smart quotes/apostrophes

    In previous versions of Pages, when pasted content included stardard quotes or apostrophes you could do a quick replace with smart quotes/apostrophes simply by doing a find and replace. Not so with the new Pages 5.
    Anyone figured out how to force Pages to do such a replace? Manually trying to do it on a long document is crazy.

    What's worse: I just did a global find and replace, trying to fix four dumb quotes in an entire document that I'd cut and pasted--and Pages turned every single smart quote into a dumb quote. In all 92 pages. 1,600 smart quotes dumbified. With no way for me to smarten them up again.
    Then, because I'm just as dumb as my quotes, I did the same thing with my single quotes/apostrophes.
    I know how I'll be spending my afternoon.

  • CS5 Code & Design View Problems?

    In earlier versins of Dreamweaver whenever I as in the deisgn view and I clicked around different pieces of text the cursor would jump to that text section in code view....Now it doesn't seem to work at all? Not sure why it is stuck in code view??

    Not sure why it is stuck in code view??
    Are you viewing a HTML or PHP file?
    If not, you won't get Design View.

  • Characters such as apostrophes and smart quotes turning into boxes or question marks

    We recently upgraded from CF5 to CF7 and are having a problem
    with previously saved text that no longer displays correctly. Some
    characters (apparently, non-ASCII characters such as curly
    apostrophes and smart quotes) are rendering as boxes or question
    marks. We recently upgraded to Oracle 10g from Oracle 8i, but this
    problem appears to be independent of the database that the text is
    stored in. Here is sample code that will illustrate the problem:
    <CFSET string1="Department’s">
    <CFSET string2="hey—there">
    <CFOUTPUT>
    string1 is #string1#
    <BR>
    string2 is #string2#
    </CFOUTPUT>
    output looks like this:
    string1 is Department?s
    string2 is hey?there
    These are rendered as boxes when viewed in Internet Explorer.
    (They show up as question marks when I copy and paste them here.)
    The Demoronize UDF helps *some* of the time, but this is
    still happening with a lot of text, especially text that gets
    pasted from a website into a form, then saved to a database. Does
    anybody have a solution for this? This is breaking my applications
    and is incredibly annoying. I'd like to either replace the
    problematic characters at the time they are displayed, or replace
    them when they are input in the database in the first place (and go
    back and update all the previously saved data to replace the
    problematic characters with plain text equivalents).
    Any suggestions appreciated.

    I finally isolated the problematic characters so I edited the
    DeMoronize UDF (available at cflib.org) by adding the following
    text replacements at the bottom:
    text = Replace(text, chr(8208), "-", "ALL");
    text = Replace(text, chr(8209), "-", "ALL");
    text = Replace(text, chr(8210), "&ndash;", "ALL");
    text = Replace(text, chr(8211), "&ndash;", "ALL");
    text = Replace(text, chr(8212), "&mdash;", "ALL");
    text = Replace(text, chr(8213), "&mdash;", "ALL");
    text = Replace(text, chr(8214), "||", "ALL");
    text = Replace(text, chr(8215), "_", "ALL");
    text = Replace(text, chr(8216), "&lsquo;", "ALL");
    text = Replace(text, chr(8217), "&rsquo;", "ALL");
    text = Replace(text, chr(8218), ",", "ALL");
    text = Replace(text, chr(8219), "'", "ALL");
    text = Replace(text, chr(8220), "&ldquo;", "ALL");
    text = Replace(text, chr(8221), "&rdquo;", "ALL");
    text = Replace(text, chr(8222), """", "ALL");
    text = Replace(text, chr(8223), """", "ALL");
    text = Replace(text, chr(8226), "&middot;", "ALL");
    text = Replace(text, chr(8227), "&gt;", "ALL");
    text = Replace(text, chr(8228), ".", "ALL");
    text = Replace(text, chr(8229), "..", "ALL");
    text = Replace(text, chr(8230), "...", "ALL");
    text = Replace(text, chr(8231), "&middot;",
    "ALL");

  • Problem with javascript/PHP/ oracle 10g smart quotes

    I have a problem with my php form that passes the text field to a javascript object. When I copy text from MS Word that includes smart quotes, the form inputs that into the database as ? (upside down) marks. The charset of the DB is WE8MSWIN1252. How do I store these smart quotes as regular quotes? And also if I can do any conversions on the front end (js or php). I tried doing some conversion but to no avail. Any help would be appreciated thank you. “double”

    Decide if you want your HTML pages in Windows code page 1252 or Unicode UTF-8. Then, make sure the pages are properly tagged as either "text/html;charset=windows-1252" or "text/html;charset=utf-8". Use HTTP header Content-type or the corresponding <META HTTP-EQUIV=...> tag. Then, set NLS_LANG environment variable for your PHP engine to either AMERICAN_AMERICA.WE8MSWIN1252 or to AMERICAN_AMERICA.AL32UTF8, depending on which encoding you selected for your HTML.
    -- Sergiusz

  • Getting rid of Multiple Spaces in Code View (after Copying/Pasting)

    Hello,
    I'm trying to find a way to get rid of multiple spaces between words in Dreamweaver CS3's code view.
    Oftentimes, when I copy/paste text from elsewhere (e-mail, website, etc), the Dreamweaver code shows up with multiple spaces. Normally, that wouldn't be problem -- except that my blog's auto-tag plug-in doesn't detect selected phrases when there are multiple spaces between words, e.g., it'll detect "Swiss Alps" in a post but not "Swiss  Alps" (notice the extra space between words in the second phrase).
    If at all possible, I'd like to be able to keep Dreamweaver's text formatting option when I copy and paste, as that means I don't need to manually put words in bold/italics.So, is there a way to keep that option while getting rid of all the extra spacing between words?
    By the way, I'm familiar with Wordpress CSS, but not with Dreamweaver CSS. Not sure if there's any difference.
    Any assistance would be much appreciated.

    I make it a point to never paste formatted text into HTML pages.  Formatted text from MS Office usually contains a variety of junk you don't want and I don't have that much faith in MS Word code removal tools.
    Bold and Italics from Word or Outlook should be changed to current HTML tags of <strong> for bold and <em> or emphasis for italics anyway.  Also see Logical Tags here:
    http://www.htmlcodetutorial.com/logical.html
    Find and replace is good for removing whitespace if you know how to do it correctly. Make backup copies just in case things go wrong.  http://www.tjkdesign.com/articles/whitespace.asp
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • DreamWeaver CS5 Crashes In Code View

    So, I've upgraded from CS4 to CS5, and everything was working fine for a month, but yesterday DW5 seems to be crashing evertime I click on a specific ASP page, in code view, and more specifically in the vbscript section of that page. I can be anywhere else on that page, but if I click in or cursor into the vbscript section, instacrash.
    I can open other asp pages in the site, and some don't crash it, but this one particular page is a guaranteed full crash when I click anywhere in the vbscript section of the page.
    Config is DW CS5, WIn 7 x64, 6GB RAM, everything fully patched and updated, both OS and CS5 apps.
    I have four minidumps already from today. Productive work is impossible. Any solutions?

    Did you ever figure out the answer to this problem? I'm having a similar problem where if I try to edit ANY code in dreamweaver, it crashes.
    Example of code
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    </body>
    </html>
    See what I mean by any code? Even a fresh bare bones HTML doc crashes when trying to edit in any way, letter, space, del, backspace, etc.

Maybe you are looking for