Convert smart quotes and other high ascii characters to HTML

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

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

Similar Messages

  • Web services and High Ascii characters

    Hello Everyone
    I have a problem regarding webservices and sending high ascii
    characters.
    My little application consists of two files: one is cfm that
    makes a view and the second is cfc that might be working as the
    component or web service.
    The goal of the application is to handle text files, divide
    them according to some rules and then send back to the user.
    Sometimes the text file contains few high ascii characters.
    Everything works fine as long as the cfc is called as the
    component. Unfortunately when I call the cfc as the webservice I
    get an error:
    The web service operation caused an invocation exception.The
    root cause was that: java.lang.IllegalArgumentException: The char
    '0x1' in 'java.lang.IllegalArgumentException: and so on....
    AxisFault
    faultCode: {
    http://xml.apache.org/axis/}HTTP
    faultSubcode:
    faultString: (500)Internal Server Error
    faultActor:
    faultNode:
    faultDetail:
    {}:return code: 500
    Do you know how can I solve my problem? I've tried different
    stuff with encoding but it didn't work.
    Thanks for all answers.

    Whatever Coldfusion's means of communication with the database, by default, it represents text meant for the browser in UTF-8.

  • Getting rid of single quotes and other bad characters

    Hello All-
    I am writing a servlet that takes a value from a form, and saves it to a database. However, when single quotes, and other illegal characters are entered, i get all sorts of errors. I am certain their is some function that would take care of all of this.
    Help!

    Hi there,
    When you try to insert single quotes into the database it gives an error or problem because a single quote is a reserved character in the database.
    If you want to store a single quote or any other character that is reserved in the database then you need to find out how to escape that reserved character.
    One option is to use the single quote twice, so instead of ' , use '' (not double quote but , type single quote twice).
    Another option is to use HTML entity code for single quote
    "Message was edited by:
    appy77

  • 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!

  • Combining smart quotes and inch marks?

    Dilemma! I have smart quotes turned on because I need them. I also need to be able to use inch marks in the same document. I have searched the Help files with no luck. Can anyone tell me if there's a way to have both smart quotes and inch marks in the same Pages document?
    Thanks in advance!
    Powermac G5 & Powerbook 15" Mac OS X (10.4.8)
    Powermac G5 & Powerbook 15"   Mac OS X (10.4.8)  

    You can indeed combine smart quotes and the character that indicates inches, by using the appropriate inch mark character from the system-wide Character Palette. To do this, you will need access the Input Menu at the top right of the menu bar. If you don't have the Input Menu visible, go into the International System Preferences, in the Input Menu tab, check the "Show Input Menu in Menu Bar" option at the bottom of the panel, and check "On" for the Character Palette. This will put a little flag on the right side of your menu bar -- this is the Input Menu.
    From the Input Menu, select the Character Palette. With the palette open, choose the Punctuation category. You will be presented with a wide array of punctuation characters, including proper inch and foot marks (which are actually "prime" and "double prime" marks, and are angled, unlike straight quotes). Select in Pages where you want the character to go, and then double-click it, and it will be inserted. The prime and double-prime marks are not considered quotes by the system, and so won't be curlified.

  • CF8 - XmlFormat not escaping High ASCII characters

    In CF8, we have a problem where XmlFormat is not escaping
    High ASCII characters. This was working just fine on our CF7
    instance, but in CF8, it is not escaping all characters. I am aware
    of the long-standing problem with escaping Windows-1252 characters,
    but now we are experiencing an issue with basic high ASCII
    characters, like chr(233) and chr(244). Is anyone else experiencing
    this issue? We have not installed Update 1 to CF8 yet. I don't see
    a fix for this in the release note, but any word on if this is
    fixed by the updater?
    Here is a test to demonstrate the issue:
    <cfset myString = "The Islamic Republic of Mauritania's
    (République Islamique de Mauritanie) 2007 estimated population
    is 3,270,000. Cote d'Ivoire and Côte d'Ivoire">
    <cfset myNewString = XmlFormat(myString)>
    <cfoutput>#myNewString#</cfoutput>

    BKBK,
    Thanks for the info. Adding the processingdirective does help
    show that these characters are being escaped, however, the behavior
    has changed somewhat between CF7 and CF8, as we were not using a
    processingdirective in CF7, and this was working as advertised.
    Where this is giving us a problem is after we create an XML
    document using CFXML, (ensuring that we XmlFormat any strings), we
    then validate that document against a schema, and we are all of a
    sudden getting errors during validation for invalid characters
    within the XML. We are using ToString() after creating the XML
    document with CFXML, and our process is the same as we were using
    in CF7. That is why I was curious if anyone else was having this
    same issue... because something definitely changed between CF7 and
    CF8 with XML processing.

  • Smart quotes and em-dashes in epub file

    When I create an epub file from my InDesign book file, I find that sometimes (not always, thought!) my smart quotes and em-dashes revert to gibberish.
    For example, when I open the epub file, the em-dash is fine, but in chapter 2, it changes to —.
    Does anyone know how I might correct this?
    Thanks so much!

    It sounds like somethings wrong with the chapter's character encoding.  The character encoding is declared in the header of the ePub HTML. From ID it's:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    This test has UTF-8 declared in the first line of its source code:
    http://www.zenodesign.com/forum/encodetest/UTF8.html
    And this has no encoding
    http://www.zenodesign.com/forum/encodetest/None.html
    Most browsers let you override or choose the character set, so in Safari if you set the character set to View>Text Encoding>default, you'll see a difference between the above links, but if you set it to Unicode (UTF-8) they both display correctly. In FireFox it's View>Character Encoding.
    You can check and edit the contents of the .epub file by changing the extension from .epub to .zip, and then extracting the contents.

  • "Smart Quotes" and Extensions

    I'm working on a text processing extension and want to implement a "Convert special characters to safe HTML entities" (that's just a working title!) menu option.  When I copy and paste some blocks of text from Word into the editor, then right-click my selection and choose my extension to process that text, the text that gets sent via the xml packet to my handler converts (in this case) Word's smart quotes (&#8220 and &#8221) to question marks.  This is before my handler processes anything.  I'm just using cfdump to look at the data.  Am I missing some intermediary processing that needs to be done somehow?  I can't figure out where it would be done since I don't have any control over the selected editor content until my handler is fired.
    Thanks!
    Andy

    The encoding is utf-8 (which is the default in CF 9 (and maybe CF 8 too), but I explicitly set it anyway, and still no luck.  It seems like Word Smart Quotes are actually seen by ColdFusion as 3 different characters.  I don't know that Smart Quotes are actually representable as specific entities, though.  When I copy a closing smart quote out of Word into a cfm file and so something like <cset q = "{smart quote here}">, and then loop over that variable one character at a time and output the ascii values, I get 3 values: 226, 8364, 65533.
    Here's a test that contains Smart Quotes that I just copied from MS Word into this editor, it will be interesting to see how they are represented after I post this message:
    “Test”
    Andy

  • Convert smart quotes

    How can I replace smart quotes that have been entered into a form where the user has pasted from an MSWord document? I want to replace the smart quote with a simple apostrophe. I understand that the smart quote for a single quotation is represented by the following in Flex: ’
    Thank you!

    If you use regular expressions, you could do it in a single line and much faster:
    In the following example, only the first instance of "sh" (case-sensitive)  is replaced:
    var myPattern:RegExp = /sh/; 
    var str:String = "She sells seashells by the seashore.";
    trace(str.replace(myPattern, "sch")); 
        // She sells seaschells by the seashore.
    In the following example, all instances of "sh" (case-sensitive)  are replaced because the g (global) flag is set in the regular expression:
    var myPattern:RegExp = /sh/g; 
    var str:String = "She sells seashells by the seashore.";
    trace(str.replace(myPattern, "sch")); 
        // She sells seaschells by the seaschore.
    Dany

  • Searching on high ascii characters

    Hi all,
    I am writing a search engine built on Oracle text (otherwise why would i be posting here??) to search lists of medical articles. Many of the article titles have special characters in the title like cedilla's and umlaut's. Some of my users will have european keyboards and will be searching using these characters, other will not and would demote such characters to the low ascii value. Currently all special characters are stored in the table as html encoded values, but this could easily be changed to something else that is supported by Oracle Text.
    Example: I have a article called "Behçet's syndrome" this needs to match if someone search with Behçet or Behcet.
    EMP has two records one with ename = Behcet and the other ename = Behçet
    SELECT ENAME
    FROM EMP
    WHERE contains (ENAME, 'Behcet', 100) > 0
    only returns one row.
    I have looked at using SYN to provide this functionality and it works but means that i continually have to update and maintain that list of synonyms which is a chore and something i want to avoid.
    Is there a way to build a index that covers both possibilities? So provide a list of special characters and what they would degrade into? I feel that there is a very simple elegant solution to this just waiting for me, any suggestions very welcome.
    thanks
    Toby

    SCOTT@10gXE> CREATE TABLE articles (id NUMBER, title VARCHAR2 (30))
      2  /
    Table created.
    SCOTT@10gXE> INSERT ALL
      2  INTO articles VALUES (1, 'Behçet''s syndrome')
      3  INTO articles VALUES (2, 'Behcet''s syndrome')
      4  INTO articles VALUES (2, 'compulsive tuning disorder')
      5  SELECT * FROM DUAL
      6  /
    3 rows created.
    SCOTT@10gXE> EXEC CTX_DDL.CREATE_PREFERENCE ('your_lexer', 'BASIC_LEXER')
    PL/SQL procedure successfully completed.
    SCOTT@10gXE> EXEC CTX_DDL.SET_ATTRIBUTE ('your_lexer', 'BASE_LETTER', 'YES')
    PL/SQL procedure successfully completed.
    SCOTT@10gXE> CREATE INDEX articles_idx ON articles (title)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS ('LEXER your_lexer')
      4  /
    Index created.
    SCOTT@10gXE> SELECT token_text FROM dr$articles_idx$i
      2  /
    TOKEN_TEXT
    BEHCET
    COMPULSIVE
    DISORDER
    SYNDROME
    TUNING
    SCOTT@10gXE> SELECT * FROM articles WHERE CONTAINS (title, 'Behçet') > 0
      2  /
            ID TITLE
             1 Behçet's syndrome
             2 Behcet's syndrome
    SCOTT@10gXE> SELECT * FROM articles WHERE CONTAINS (title, 'Behcet') > 0
      2  /
            ID TITLE
             1 Behçet's syndrome
             2 Behcet's syndrome
    SCOTT@10gXE>

  • Smart art and other issues

    I am still having some issues with Presenter 10. I am using it with PowerPoint 2010. Here are some issues I am having:
    The quiz questions formatting is terrible. Even after I go back and line everything up, it still sometimes looks bad after it is published.
    I am using PowerPoint Smart Art, and I've noticed that sometimes when I publish, some of the Smart Art just disappears. Why?
    I am still unable to get the external links to work as well. My Flash Player is up to date, I'm not using shadowing and I don't have any extra icons, or other formatting in the way.
    Thanks,

    My home is 2880sqft and a two story, I have the router in the game room upstairs (moved from the office to a more central location recently).  However, my signal strength on my devices is 100% but my connection speeds when connected to wireless just always drop or are sometimes non existent and I have to disconnect my device from wireless and re-connect.  It is as if I'm connected to the router but I'm just not getting internet connectivity. I can be sitting right next to the router and this happens.  This only happens with wireless I always have a steady connection when connected with ethernet.  
    If I change to different SSIDs won't that disable the devices being able to see each other on the same network?  Mainly need to be able to stream content to my devices.  
    I will try this solution, but if this doesn't work should I be looking at upgrading to a newer model (hate that I spent so much on this one) or look elsewhere for my wireless router solutions.  
    Regards,
    T

  • Replacing non-ASCII characters with HTML charcter references

    Hi All,
    In Oracle 10g or greater is there a built-in function that will convert a string with non-ASCII characters like this
    a b č 뮼
    into an ASCII string with HTML character references like this?
    a b & # x 0 1 0 D ; & # x B B B C ;
    (note I had to include spaces between each character in the sample code for message to prevent the forum software from converting my text)
    I tried using
    utl_i18n.escape_reference( val, 'us7ascii' )
    but for some reason it returns
    a b c & # x B B B C ;
    Note how it converted the Western European character "č" to its unaccented counterpart "c", not "& # x 0 1 0 D ;" (is this a bug?).
    I also tried a custom solution using regexp_replace and asciistr (which I can't include here because the forum software chokes on it) but it only returns the correct result for values <=4000 characters long. Unfortunately asciistr doesn't appear to accept CLOB values larger than 4000 characters. It returns an error message like
    (ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: 30251, maximum: 4000) ).
    I'm looking for a solution that works on CLOB data of any size.
    Thanks in advance for any insight you can provide.
    Joe Fuda

    So with that (UTF8) in mind, let's take another look.....
    As shown below, I used a AL32UTF8 database.
    Note: I did not use a unicode capable tool for querying. So I set console mode code page to 1250 just to have č displayed properly (instead of posing as an è).
    Also, as a result of using windows-1250 for client character set, in the val column and in the second select's ncr column (iso8859-1), è (00e8) has been replaced with e through character set conversion going from server back to client.
    Running the same code on a database with a db character set such as we8mswin1252, that doesn't define the č (latin small c with caron) character, would yield results with a c in the ncr column.
    C:\>chcp 1250
    Aktuell teckentabell: 1250
    C:\>set nls_lang=.ee8mswin1250
    C:\>sqlplus test/test
    SQL*Plus: Release 11.1.0.6.0 - Production on Fri May 23 21:25:29 2008
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the OLAP option
    SQL> select * from nls_database_parameters where parameter like '%CHARACTERSET';
    PARAMETER              VALUE
    NLS_CHARACTERSET       AL32UTF8
    NLS_NCHAR_CHARACTERSET AL16UTF16
    SQL> select unistr('\010d \00e8') val, utl_i18n.escape_reference(unistr('\010d \00e8'),'us7ascii') NCR from dual;
    VAL  NCR
    č e  c e
    SQL> select unistr('\010d \00e8') val, utl_i18n.escape_reference(unistr('\010d \00e8'),'we8iso8859p1') NCR from dual;
    VAL  NCR
    č e  &# x10d; e     <- "è"
    SQL> select unistr('\010d \00e8') val, utl_i18n.escape_reference(unistr('\010d \00e8'),'ee8iso8859p2') NCR from dual;
    VAL  NCR
    č e  č &# xe8;
    SQL> select unistr('\010d \00e8') val, utl_i18n.escape_reference(unistr('\010d \00e8'),'cl8iso8859p5') NCR from dual;
    VAL  NCR
    č e  &# x10d; &# xe8;In the US7ASCII case, where it should be possible for all non-ascii characters to be escaped, it seems as if the actual escape step is skipped over.
    Hope this helps to understand whether utl_i8n is usable or not in your case.
    Message was edited by:
    orafad
    Fixed replaced character references :)

  • How can i convert values in my string to ascii characters

    Hi guy.
    I am wrinting a code but i m stuck, I have a string with (Battle of Midway) in it, Now i want to convert each character in this string with the asci character,,,
    String temp = {"Battle of Midway"};
    so the ascii will be:
    B=66 a=97 t=116 l=108 e=101 o=111 f=102 M=77 i=105 d=100 w=119 y=121
    i found all these number for all the charachers, but i donno how to covert this string into ascii characerts... ofcurse i can do it one by one...but is there any class or method i can use for this,,,,, Once i convert all the character (from string) to ascii character THEN i have to convert it back from ascii to character,,
    Is anybody has any idea
    Thanks alot in Advance

    You get get the ascii code for those characters by doing something like:
    int ascii = str.charAt(0); //Get ascii value for the first character.
    Kaj

  • Postscript to PDF converter in Safari and other applications

    I frequently work under Linux so I have and receive many files in ps-format. Until recently I encountered no problems since Tiger converts automatically to PDF, whether in Safari, the Mail Tool or the PDF-reader. From one day to the other this doesn't work anymore, probably after a recnt update of something, I'm not quite sure what. Any software that attemps to open a ps-file gets stuck and eventually crashes. It still works with X11 and ghostview and my ps2pdf converter also works in my Xterm ...
    Could it be a problem with the Quartz composer or some software that controls the graphic output? Anybody a clue? Thanks a lot in advance for helping!
    Bruno
    Power Book G4   Mac OS X (10.4.7)  

    Welcome to the forum! Post your comments/feedback to Apple here:
    http://www.apple.com/feedback/ipad.html

  • Converting Word, Excel, and others in 1 pfd file

    Hi,
    Can I take multiple word, excel, and publisher docs and convert them into a single multiple page pdf file?
    Right now I am trying the free online version and I can create a pdf but then I wish to add files to that pdf that I just created.
    Long story short, I am trying to create a portfolio that I can email?
    Thanks
    Scott

    Hi Scott,
    Thank you for posting. I believe you may have already recieved an answer to this question since you wrote to our feedback email, but I'll post a reply here too - just in case.
    It's not currently possible for Acrobat.com to merge separate files into a single PDF; this functionality is on our list of enhancements, so I encourage you to stay tuned for future releases. In the meantime, to create PDF portfolios, you'll have to use Adobe Acrobat desktop software. You can download a free 30-day trial here:
    http://www.adobe.com/products/acrobatpro/tryout.html
    I hope this will be helpful to you. Please let me know if you have any further questions.
    Best,
    Rebecca

Maybe you are looking for