Gets the best-fit mapping behavior when converting Unicode characters to ANSI characters.
Assemblies: mscorlib (in mscorlib.dll)
System.Runtime.InteropServices (in System.Runtime.InteropServices.dll)
If best-fit mapping is false and ThrowOnUnmappableChar is true, all Unicode characters that require conversion to ANSI format will generate an exception when passed to unmanaged code. Some characters are unmappable, even when best-fit mapping is true. Some characters lack a best-fit representation; these characters are called unmappable. Unmappable characters are usually converted to the default '?' ANSI character.
Certain Unicode characters are converted to dangerous characters, such as the backslash '\' character, which can inadvertently change a path.