> Thanks for reply. It is clear now. > I also found that when I use like that I have problems > with Unicode chars.
> I just changed it like > <CFSET initial_content = REReplace(attributes.html, > "[^#chr(32)#-#chr(65535)#]", " " , "All")> > and it works without any problem with also Unicode chars. Seems to me like it would make more sense to replace the non-printing characters rather than replacing all non-nonprinting characters... i.e. <cfset initial_content = rereplace(attributes.html, "[#chr(0)#-#chr(31)#]"," ","ALL")> that way it doesn't need to know how many characters there might be in your character set, so it wouldn't care if it's ascii or unicode or which unicode character set. Plus I think the regular expression might be more efficient as it's checking characters against a list of 32 possible values instead of against a list of many thousands of possible values. I guess that would depend on how the regular expression engine operates -- and I'm not that familiar with the underlying mechanics... But just in general practice this seems more logical to me. s. isaac dealey 954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://macromedia.breezecentral.com/p49777853/ http://www.sys-con.com/story/?storyid=44477&DE=1 http://www.sys-con.com/story/?storyid=45569&DE=1 http://www.fusiontap.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195701 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

