BestFitMappingAttribute::BestFitMapping Property
.NET Framework (current version)
Gets the best-fit mapping behavior when converting Unicode characters to ANSI characters.
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System::Booleantrue if best-fit mapping is enabled; otherwise, false. The default is true.
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.
Caution |
|---|
Certain Unicode characters are converted to dangerous characters, such as the backslash '\' character, which can inadvertently change a path. |
Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Show:
