Why htmlspecialchars_decode in PHP does not have the charset parameter as in its counterpart?

Posted by Lawrence Lau on Stack Overflow See other posts from Stack Overflow or by Lawrence Lau
Published on 2010-05-17T07:55:02Z Indexed on 2010/05/17 8:00 UTC
Read the original article Hit count: 310

Filed under:
|

There is a charset parameter in htmlspecialchars but the decode version does not have it. In comparison to the similar htmlentities, the encode and decode functions both have the charset parameter. So I can't choose what charset I am decoding back to?

© Stack Overflow or respective owner

Related posts about php

Related posts about htmlspecialchars