[Mono-list] Encoding.Convert

Atsushi Eno atsushieno at veritas-vos-liberabit.com
Fri Apr 10 04:55:25 UTC 2015


That smells like a bug but the latest mono uses Microsoft 
referencesource for UTF8Encoding and co. so that may not happen anymore.

Atsushi Eno

On 2015年04月03日 19:38, Stefano Facchetti - Arcoba Srl wrote:
> Hi,
> I'm using Mono 3.12.1 on ubuntu 14.04.02 LTS
>
> The following code works only on windows machine:
>
> byte[] tmp = MyFunction.GetByteArray();
> byte[] conv = Encoding.Convert(Encoding.UTF8, 
> Encoding.GetEncoding(1252), tmp);
>
> With mono I receive the following error: /Insufficient space in the 
> argument array. Parameter name: bytes/
> Any idea..?
>
> Best regards,
> Stefano.
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list



More information about the Mono-list mailing list