This content has been marked as final. Show 10 replies
What you want is ’ but I don't see any way to get it into the string.
try using the CF CHR() function with the extended character code for the character you want.
Here's a list of extended codes with pictorial examples:
<cfset ImageDrawText(myImage,"nice - we won#chr(148)#t",5,71,attr)>
Some of those extended characters work in CFIMAGE. The trademark symbol did, #chr(174)#, but curly quotes (when the image rendered was included in a pdf created by cfdocument) looked like a white rectangular box.
is there a curly quote character within that Comic Sans MS font? the white rectangular block usually indicates that there's an out-of-range character.
Yes - there is a curly quote in Comic Sans. I have also tried other fonts, like Zapf Dingbats and it's all white rectangular boxes. It seems not all fonts are supported. I've discovered custom TTF and OTF fonts are not supported at all.
they are. you just have to make sure the cf recognizes them:
in cf admin got to Font Management and see which fonts are listed there.
using the "Add" section on top of page navigate to your Windows' Fonts
folder to include all fonts installed on your system. Don't forget to
click the "ADD" button after selecting the fonts folder!!!
These two entries might help.
Short answer the default encoding is usually UTF-8 where "curly" quotes are in the 8000 character range: 8216, 8217, 8220, 8221, ...
A copy and paste from a curly quote on a web page worked. Thanks to everyone who looked at this!
Originally posted by: rachelcp
A copy and paste from a curly quote on a web page worked.
Using the correct character code for your current encoding #chr(8216)#, #chr(8217)# , etc.. works as well.