Multiple choice technology programming languages

How to throw an exception if marshaling encounters an unmappable Unicode character that is converted to an ANSI character?

  1. Set ThrowOnUnmappableChar = True

  2. Set ThrowOnmappableChar = True

  3. Set ThrowOnmappableChar = False

  4. Set ThrowOnUnmappableChar = False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Setting ThrowOnUnmappableChar to true causes marshaling operations to throw an exception when a Unicode character cannot be mapped to an ANSI character. Setting it to false silently replaces unmappable characters with a default '?' character.