PHP htmlentities encoding

I needed to know my options for htmlentities character encoding support today. The PHP documentation had everything I needed to know. I ended up adding these constants to my code:

const UTF8_ENCODING = 'UTF-8';
const ASCII_ENCODING = 'ISO-8859-1';

Leave a Reply