Skip to main content
Known Participant
June 12, 2009
Question

how to fix this in cf8

  • June 12, 2009
  • 2 replies
  • 1075 views

Hi i had one application in which we will generate the letters in cf5 and now we are doing the same in cf8 but i had an example program’s

when i try to print this program’s instead of single quatation i am getting program’s.

How  to fix this single quotation issue .

thanks,

This topic has been closed for replies.

2 replies

Dileep_NR
Inspiring
June 13, 2009

Hi,

       I would like to know, you are trying print letters  it to browser ?

cfnewAuthor
Known Participant
June 15, 2009

hi thanks for ur reply yes i am trying to post this in browser

Dileep_NR
Inspiring
June 15, 2009

Hi,

     I think you are using "cfdump" for displaying to browser.

     Please try cfoutput

Please try the following code

program’s.

<cfset testVar= "program&##146;s."><br />
<cfoutput>
    cfoutput #testVar#<br />
</cfoutput>
cfdump <cfdump var="#testVar#"><br />

Hope this will help you

ilssac
Inspiring
June 12, 2009

That is an HTML character encoding for a closing "curly" quote that commonly comes from MS Word generated comments.

It is usually a desireable thing that somehow your content got properly encoded.  Usually this does not happen and people are posting queries to boards like this asking what their text has a bunch of squared or question marks instead of the quote/aposrophe they expected.

I don't know why you application is doing this.  It must be somewhere in your code.  But I can't tell.

Message was edited by: Ian Skinner A Clear and Quick Reference to HTML Symbol Entities Codes http://www.entitycode.com/