[nycphp-talk] Strange Characters
Rahmin Pavlovic
rahmin at insite-out.com
Fri Apr 21 17:38:55 EDT 2006
On 4/21/06 5:07 PM, "Joseph Crawford" <codebowl at gmail.com> wrote:
> Hello,
>
> Has anyone seen these characters before?
>
> 
Yes, that's what happens when you echoing something that's not within your
charset.
Printing high-bit chars can be weird, at best. Our editor's format their
own HTML, but they also use stuff like Word and Quark, so I came up with a
blacklist mapping solution to keep any HTML we want but convert the high-bit
stuff like:
char(133) => '...'
char(147) => '"e;'
char(148) => '"e;'
char(162) => '¢'
char(163) => '£'
char(165) => '¥'
etc
More information about the talk
mailing list