Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Punctuation Marks

    Hi there,

    I have a problem occurs when content is pasted in containing curly punctuation
    marks instead of the standard pc keyboard punctuation marks which are
    vertical/straight.

    E.g.
    Curly punctuation marks - ?Double Punctuation Marks? / ?Single Punctuation
    Marks?
    Vertical/Straight punctuation marks - "Double Punctuation Marks" / 'Single
    Punctuation Marks'

    Is it any coldfuion function or method to replace all the curly puntuation
    marks to vertical/straight punctuation marks without re-type on the pasted
    content?

    Your help is much appreciated.


    rycbn Guest

  2. Similar Questions and Discussions

    1. Hyphenation -- Punctuation in CS
      AI CS hyphenate when dont need to hyphenate and revers (in text boxes) like this: --------------- blah blah blah , blah blah ---------------...
    2. CS: Hanging Punctuation buggy!
      Try this: create a new text box with its text flushed right. Now, type in a few lines, separated by (soft) returns (i.e. shift-returns), like...
    3. Punctuation as noise
      > I have noticed an odd effect already, though. The In my scrpts directory, I have a half dozen each very small ruby and perl scripts. For the...
    4. How to remove all punctuation EXCEPT dashes?
      I need to standardize phone numbers that are entered many different ways. I can remove all punctuation then use left/middle/right functions to...
    5. Regular expression for punctuation
      Hi. I am trying to define a regular expression that accepts letters and punctuation characters. I read something about Posix where I could use ...
  3. #2

    Default Re: Punctuation Marks

    These extended characters (including smart quotes which MS Word automatically
    inserts) can cause a problem in web displays. There's a handy program called
    DeMoronize by Shawn Porter that can strip these out:

    [url]http://www.cflib.org/udf.cfm?ID=725[/url]

    It replaces these characters with their simple equivalents or else uses HTML
    extended characters to display them.

    -Paul


    dempster Guest

  4. #3

    Default Re: Punctuation Marks

    Thanks Paul.

    I tried but I don't think this program work with curly puntuaction marks.
    rycbn Guest

  5. #4

    Default Re: Punctuation Marks

    You can always use Replace( ) to replace those offenders.
    jdeline Guest

  6. #5

    Default Re: Punctuation Marks

    I had tried the Replace() and ReReplace(). Both of them won't work with the curly punctuation marks.
    rycbn Guest

  7. #6

    Default Re: Punctuation Marks

    there's nothing "wrong" w/those chars that getting your encoding right won't correct. try utf-8 or the windows latin-1 codepage (not iso-8859-1).

    PaulH Guest

  8. #7

    Default Re: Punctuation Marks

    Like Paul says, encode your page and variables properly and you're good to go.
    Unicode (utf-8) is where its at.

    Love your new tagline, Paul :D

    --Matt--
    MSB Web Systems... [url]http://mysecretbase.com[/url]
    [i"As to marriage or celibacy, let a man take the course he will.
    He will be sure to repent."
    - Socrates



    MattRobertson Guest

  9. #8

    Default Re: Punctuation Marks

    I insert the <cfcontent type="text/html; charset=utf-8" /> after the <body>
    tag.
    But it won't replace the & to &amp; when I view the source code.
    Is it the correct syntax? If not, how do I encode cfm page?

    rycbn Guest

  10. #9

    Default Re: Punctuation Marks

    well cfcontent and the setEncoding functions should probably go in yoru
    application.cfm (or its cf7 equivalent). however it seems i don't get what you
    actually want, what exactly are you after? if you're after url encoded try the
    URLEncodedFormat(stringToEncode, charset) function.

    PaulH Guest

  11. #10

    Default Re: Punctuation Marks

    matt, yeah that quote is my rehab slogan, "suffer". i'm up to 300 meters a day walking or should i say "gimping". oh joy ;-)
    PaulH Guest

  12. #11

    Default Re: Punctuation Marks

    I think I found the solution.
    Thanks for those tips. :-)
    rycbn Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139