<cfwhat>

Thursday, June 28, 2012

Stripping characters that can cause problems in XML, JSON, etc

Use this code to remove high ascii characters (higher than character 127) and control characters from text.

 REReplace(content,"[^\x20-\x7f]","","all")