We are having problems with get Double Byte characters from a COM object.
Below is a 3 column table showing the data we send and what we get back
inside of .Net.
Char Pre-Marshalling Post-Marshalling
Symbol ( DBCS hex ) (hex values for unicode string .net)
‰ 89 2030 ???
ï EF EF
” 94 201D ???
@ 40 40
Ò D2 D2
¼ BC BC
¶ B6 B6
Ë CB CB
” 94 201D ???
Ð D0 D0
This is the method we use to unmarshal
int PrintNormal(Int32 arg1, [MarshalAs(UnmanagedType.Bstr)] string arg2);
Any tips on proper unmarshalling?
|