Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Apostrophe, Quote Marks Turned into Squares

0 views
Skip to first unread message

Joe Meboe

unread,
Jan 24, 2005, 12:30:19 AM1/24/05
to
Here's some text pasted into my textarea field (ColdFusion 5 running on
Solaris): It?s ?on the same page? You can't see it here because the quote in
'it's' looks plain, as do the quote marks in the rest of the page. But when my
users paste that in, the apostrophe and quote marks get converted into
something that displays as squares. When I list the form field on the next
page, it displays as: Field = DESCRIPTION, Value = It???s ???on the same
page??? I have tried it with and without the ' charset='utf-8' in the
stylesheet. I have tried replacing '‘' and other symbols with the
straight apostrophe - nothing works. I am pulling out my hair. Short of
telling my users to retype every apostrophe, quote mark etc. when they paste
data in from Outlook or Word, is there a way to convert the characters? Many
thanks! Joe Meboe, joe....@boeing.com

Lee3

unread,
Jan 24, 2005, 1:20:56 AM1/24/05
to
Until someone more knowledgable on solaris/this topic comes along, you might check out this http://www.houseoffusion.com/cf_lists/messages.cfm/Threadid=23066&forumid=4&#116560 and see if it helps.

Anticlue

unread,
Jan 25, 2005, 10:27:55 PM1/25/05
to
Hi.

on the top of the page try

<cfset setEncoding("form","utf-8")>
<cfset setEncoding("url","utf-8")>

HTH,
Anticlue


albatross07

unread,
Jan 25, 2005, 11:56:27 PM1/25/05
to
you may want to llok into an open source function out there called "demorinize" I believe you can find it on cflib it has done wonders for me.

good luck

Ron

PaulH

unread,
Jan 26, 2005, 11:49:40 AM1/26/05
to
that's iso-8859-1 vs windows codepage encoding issue. windows codepage (cp1252
i think) is more like a superset of iso-8859-1. and if i recall, cf5's
"charset" was iso-8859-1 (not that it paid much attention to charsets).

how you fix this depends where this issue occurs and/or you database (if its
occuring on the backend). a square is not bad data (a ? actually means
corrupted data), it just means the font you're using can't render that glyph.
but the simplest approach is to simply replace these chars as albatross07
suggested. note that would not be a good solution for MX.


0 new messages