Skip to content

.NET Framework reference, Char Struct, Char values and interop: Error "UTF-8 encoded" #2173

Closed
@michael-brux

Description

@michael-brux

see: https://docs.microsoft.com/en-us/dotnet/api/system.char?view=netframework-4.7#remarks

section "Char values and interop"

existing text: "When a managed Char type, which is represented as a Unicode UTF-8 encoded code unit, is passed to unmanaged code, the interop marshaler converts the character set to ANSI."

Char type represents a UTF-16 code unit.

new / correct text: "When a managed Char type, which is represented as a Unicode UTF-16 encoded code unit, is passed to unmanaged code, the interop marshaler converts the character set to ANSI."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions