> I am trying to get COLDFUSION (server 4.5) to present 
> Unicode data from an MS ACCESS database as Unicode text.

I don't know if CFCONTENT will make any difference for this or not - I don't
know whether CF will be able to deal with the Unicode data in Access in the
first place. There are some smart i18n guys on this list who can answer that
better than I can.

> The CFCONTENT tag <cfcontent type="text/html:charset=utf-8"> 
> was suggested, but the CF administrator has disabled the 
> tag because of it's FILE attribute.
> 
> I ran across this by Charles Arehart:
> 
> "The other situation where <CFCONTENT> is unavailable is 
> when the CF administrator has disabled the tag for security 
> reasons. The security risks have nothing to do with the way 
> we're using <CFCONTENT>, but rather with ways it can be used 
> for other purposes (via its FILE attribute). Sadly, this too 
> is a showstopper until Allaire provides a means to restrict 
> the use of the FILE attribute, while permitting our more 
> generic use of the tag. (In my CF/WML chapter in Professional 
> WAP Programming, Wrox Press, I offer a possible workaround.)"
> 
> Does anyone know of the mentioned workaround, or have any 
> other suggestions?

I don't know the workaround Charlie mentioned, but I'd suggest you try using
the CFHEADER tag to set the Content-Type response header. When using
CFCONTENT with generated non-HTML output, you're just using it to change the
MIME type anyway:

<cfheader name="Content-Type" value="text/html:charset=utf-8">

Another potential workaround would be to use a META tag in your HTML
document itself. That works in IE 6, and I imagine that it works in other
common browsers, though I haven't tested it:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to