[Mono-dev] GBK support error

Atsushi Eno atsushi at ximian.com
Tue Nov 15 07:52:55 EST 2005


Hi,

zhu shi song wrote:
> Dear lists,
>  I need to convert string "aÓÐÍø" to byte array.

Can you please give the same string using escaped (\uXXXX)
representation? It looks broken on mail messages.

>  Encoding e = Encoding.GetEncoding("GBK");	    	      
>  
>  byte[] bytebuf = e.GetBytes("1ÓÐÍø");
> 
>  Under Windows, I got "31D3D0CDF8". But under Mono,
> the result is "0031D3D0CDF8".
> 
> Who can help me?
> 

It would be nice if you file a bug on our bugzilla:
http://www.mono-project.com/Bugs

Thanks,
Atsushi Eno



More information about the Mono-devel-list mailing list