Get rid of Word's funky characters

I always despise the funky characters that Microsoft decided to put into Word documents for simple things like quotes and dashes. Extracted (borrowed!) from the safetext() ColdFusion UDF function, the following ColdFusion code will do the trick:

<cfset goodText=replaceList(badText, chr(8216) & "," &
chr(8217) & "," & chr(8220) & "," & chr(8221) & "," & chr(8212) & "," &
chr(8213) & "," & chr(8230),"',',"","",--,--,...")>

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
BlogCFC was created by Raymond Camden. This blog is running version 5.8.