Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
rycbn #1
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
-
Hyphenation -- Punctuation in CS
AI CS hyphenate when dont need to hyphenate and revers (in text boxes) like this: --------------- blah blah blah , blah blah ---------------... -
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... -
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... -
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... -
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 ... -
dempster #2
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
-
rycbn #3
Re: Punctuation Marks
Thanks Paul.
I tried but I don't think this program work with curly puntuaction marks.
rycbn Guest
-
jdeline #4
Re: Punctuation Marks
You can always use Replace( ) to replace those offenders.
jdeline Guest
-
rycbn #5
Re: Punctuation Marks
I had tried the Replace() and ReReplace(). Both of them won't work with the curly punctuation marks.
rycbn Guest
-
PaulH #6
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
-
MattRobertson #7
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
-
rycbn #8
Re: Punctuation Marks
I insert the <cfcontent type="text/html; charset=utf-8" /> after the <body>
tag.
But it won't replace the & to & when I view the source code.
Is it the correct syntax? If not, how do I encode cfm page?
rycbn Guest
-
PaulH #9
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
-
PaulH #10
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
-
rycbn #11
Re: Punctuation Marks
I think I found the solution.
Thanks for those tips. :-)
rycbn Guest



Reply With Quote

