>Replace(Local.Text, chr(8211), "-", "all"); /* short dash from MS Word */
>Replace(Local.Text, chr(8212), "--", "all"); /* long dash from MS Word */
>Replace(Local.Text, chr(8216), "'", "all"); /* left single quote from MS Word 
>*/
>Replace(Local.Text, chr(8217), "'", "all"); /* right single quote from
>MS Word */
>Replace(Local.Text, chr(8220), '"', "all"); /* left double quote from MS Word 
>*/
>Replace(Local.Text, chr(8221), '"', "all"); /* right double quote from
>MS Word */

The funny thing here is that those are actually the correct Unicode codes for 
those chars, and should work fine on the web (though perhaps needing to be 
converted to HTML character entities rather than the actual chars).

The ones that are apt to cause the most trouble, in my experience, are the 
Windows-1252 versions of those characters (especially since I've seen cases 
where software advertised the text it was giving me as ISO Latin-1 or even 
UTF-8, and STILL contained the Windows chars!):

En-dash = 150
Em-dash = 151
Single "smart quotes" = 145, 146
Double "smart quotes" = 147, 148

(In Unicode, FWIW, that entire row of the character chart is just control 
codes, not printable characters.)

Sixten

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

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

Reply via email to