❔ char and character size difference
Im wandering why beteween char size having 2 byte and character size having 1byte is differ.
character isn't it 2byte since char data type?
2 Replies
Marshal.SozeOf returns the marshalled size
and marshalled chars are convertes to utf8
(.net chars are utf16)
min char size for utf8 is 1 bye, utf16 is 2 bytes
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.