[Mono-list] string encoding
Sun, 22 Jun 2003 20:55:08 -0400
On Sun, Jun 22, 2003 at 07:17:40PM -0500, Mike Kestner wrote:
> Dietmar's recently announced custom marshaler availability. That may be
> the best current alternative for a solution for utf8 strings, although
> it would be nice to get a definitive call from the runtime guys on what
> behavior mono wants to expose. Maybe mono could lobby the ECMA to add
> CharSet.Utf8 and implement it in the meantime? It would be nice to be
> able to just generate CharSet=CharSet.Utf8 in DllImports.
If ECMA can be convinced, that seems to be the ideal solution. All the
workarounds have some kind of disadvantage.
If a custom marshaler can be done without significant performance
penalty vs. the builtin string marshaling it doesn't seem so bad,
though. The only downside is having to type lengthy MarshalAsAttribute
stuff when writing bindings by hand, right?