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.
public static testEncodingSupportsASCII ( string $encoding, boolean $bypass = false ) : Array | ||
$encoding | string | Encoding name to test, as per iconv format |
$bypass | boolean | Whether or not to bypass the precompiled arrays. |
리턴 | Array | of UTF-8 characters to their corresponding ASCII, which can be used to "undo" any overzealous iconv action. |