Invalid characters may be substituted NULL (no output), string or integer value (Unicode character code value).
mb_substitute_character() specifies substitution character when input character encoding is invalid or character code is not exist in output character encoding. Invalid characters may be substituted NULL (no output), string or integer value (Unicode character code value).