Lets assume the following string is entered into a form and submitted to a PHP script.
"€ should encode as €"
I would like to know how to actually get € to encode as € htmlentities() doesn't do it, what voodoo is needed in order to get that to encode properly (and others like it)?