You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Native strings are automatically marshalled to C-compatible strings.
But it turns out that on Japanese Windows the strings are marshalled as Shift-JIS and not UTF-8. I'm still in the middle of figuring this bug out, but it seems like this is wrong.
The text was updated successfully, but these errors were encountered:
The answer to this is that if the MarshalAs attribute isn't specified for a string, the string is encoded according to the system's ANSI code page. On Linux, this is always UTF-8, but on Windows, it can vary, since it uses this function.
The string argument page says the following:
But it turns out that on Japanese Windows the strings are marshalled as Shift-JIS and not UTF-8. I'm still in the middle of figuring this bug out, but it seems like this is wrong.
The text was updated successfully, but these errors were encountered: