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
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.
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
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?
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.
North America
Europe, Middle East and Africa
Asia Pacific