[Mono-list] Is StringToCoTaskMemUni UTF-16?

Jonathan Pryor jonpryor at vt.edu
Fri Jan 20 20:16:23 EST 2006


On Fri, 2006-01-20 at 18:25 -0500, Joshua Tauberer wrote:
> Does Marshal.StringToCoTaskMemUni return a UTF-16 string, or UCS-2, or...?

StringToCoTaskMemUni just copies each character from the source string
to the destination buffer, so the buffer returned contains a UTF-16
string (the same encoding & endian-ness as the native System.String
type).

 - Jon




More information about the Mono-list mailing list