This expensive function tests whether or not a given character encoding supports ASCII. 7/8-bit encodings like Shift_JIS will fail this test, and require special processing. Variable width encodings shouldn't ever fail.
Signature
public function testEncodingSupportsASCII(string
$encoding,
[boolean
$bypass = false] )
Parameters
$encoding
—
string
Encoding name to test, as per iconv format
$bypass
—
boolean
Whether or not to bypass the precompiled arrays.
Returns
Array
of UTF-8 characters to their corresponding ASCII, which can be used to "undo" any overzealous iconv action.