Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
enum System.Runtime.InteropServices.CharSet
Assembly: System.Runtime
Dictates which character set marshaled strings should use.
Values
None
This value is obsolete and has the same behavior as <see cref="F:System.Runtime.InteropServices.CharSet.Ansi" /> .
Ansi
Marshal strings as multiple-byte character strings: the system default Windows (ANSI) code page on Windows, and UTF-8 on Unix.
Unicode
Marshal strings as Unicode 2-byte character strings.
Auto
Automatically marshal strings appropriately for the target operating system. See Charsets and marshaling for details. Although the common language runtime default is <see cref="F:System.Runtime.InteropServices.CharSet.Auto" /> , languages may override this default. For example, by default C# and Visual Basic mark all methods and types as <see cref="F:System.Runtime.InteropServices.CharSet.Ansi" /> .