Dominic Watson wrote:
> Apparently, the org.apache.commons.lang.StringEscapeUtils java class'
> escapeXml method escapes this (and other) characters properly. So
> something like:
>
> <cfset escapers = CreateObject('java',
> 'org.apache.commons.lang.StringEscapeUtils')>
> <cfset cleanedDescription = escapers.escapeXml(description)>
>
> When I first tested this out I found that the
> org.apache.commons.lang.StringEscapeUtils class could not be found so
> I had to install the org.apache.commons.lang package which can be
> found here:
>
> http://commons.apache.org/downloads/download_lang.cgi
>
> Note: I've not been able to test this with a string that produces the
> error you are having.
>
> HTH
>
> Dominic
>
>   
I remember using safetext 
(http://cflib.org/index.cfm?event=page.udfbyid&udfid=56) to remove the 
special chars like:

‘the quicj’

Dr – jhg


and other stuff. Please test and I hope it works

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308595
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to