> Call it str_escape(string, flags optional, encoding optional) and be done > with it.
Keeping it simple definitely preferred > 1) do we even need encoding or is UTF8 just fine Definitely need encoding. mbstring supports quite a lot http://php.net/manual/en/mbstring.supported-encodings.php I think you'd need to at least approximately match those encodings, perhaps there is code already there that can be depended upon? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php