P/Invoke and UTF-32 #98975
-
On Linux, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
A UTF-32 char is just an |
Beta Was this translation helpful? Give feedback.
-
What is your question? Is it how to marshal as UTF-32 in a |
Beta Was this translation helpful? Give feedback.
-
On Windows
Yes, which matches the .NET |
Beta Was this translation helpful? Give feedback.
On Windows
wchar_t
is notably UTF-16. It's one of the places where different platforms have different definitions for basic C/C++ types.Yes, which matches the .NET
char
type. You would need to explicitly useint
oruint
(preferably matching the signedness ofwchar_t
for the underlying platform) when targeting Unix based platforms wherewchar_t
is 32-bits.