I've used the following regex to remove non-ascii characters: <cfset variables.content = REReplaceNoCase ( variables.content, "[^\x00-\x7f]", "", "ALL" ) />
Obviously, it can be tweaked to remove any ranges that you want include/exclude. On 5/31/06, daniel kessler <[EMAIL PROTECTED]> wrote: > >Check out this UDF, http://www.cflib.org/udf.cfm?ID=725 > > I don't know why, but that didn't seem to remove the odd characters. I tried > adding my known problem char "chr(28)" but I suppose I didn't do it right > because I saw no change in the text. I also tried adding some chars that I > saw that it supposed to replace like ^ and & (with &) but it didn't seem > to do so. > > I'll continue to look it over to see if I did something wrong. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241799 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54