2 ms·
> 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 (m
by duskwuff 10y ago
> 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.