[thelist] CF -- scrubbing special characters

.jeff jeff at members.evolt.org
Mon Sep 9 19:52:01 CDT 2002


joshua,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Joshua Olson
>
> > [...] it's not a completely satisfactory solution for
> > "invalid" characters like the infamous &#0149; or
> > word's curly quotes, etc.
>
> Using the code I provided, that particular character is
> replaced appropriately.  You are correct in noticing
> that not all unicode characters will be replaced.  Only
> characters between 127 and 255 slots will be replaced.
> In this case, the character you suggested is 149 and will
> be replaced.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

rudy's point though is that &#0149; is no longer considered a valid numeric character entity.  we should be using &bull; or &#8226; instead.  the same for &#0151; which should be replaced with &mdash; or &#8212;.

http://evolt.org/article/character_entity_chart/17/21234/

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/




More information about the thelist mailing list