News for hackers. Stuff that matters.
Re:The Magic 0xC2 by duskwuff on Tuesday April 11, 2017 @06:16PM (#14093016)
> PHP also has nice footguns in that area.

PHP, generally speaking, doesn't do Unicode at all. Outside of functions which explicitly do encoding conversions (mbstring, iconv, etc), all "strings" are just handled as a bag of bytes.

The main footguns I'm aware of are the "utf8_encode" and "utf8_decode" functions, which actually do lossy UTF8 <-> ISO8859-1 conversions.

There are no comments on this comment yet.