[Mono-list] Encoding Question
Ian Norton
ian.norton-badrul at thales-esecurity.com
Mon Oct 29 14:20:59 UTC 2012
On mono 3.0.0 ( amd64 pmono ) the following work fine for me:
csharp> using System.Text;
csharp> Encoding.GetEncoding(932);
I18N.CJK.CP932
csharp> Encoding.GetEncoding("shift_jis");
I18N.CJK.ENCshift_jis
The strange thing I see is that according to MSDN "shift_jis" and 932 are
supposed to be the same encoding..
http://msdn.microsoft.com/en-us/library/86hf4sb8(v=vs.80).aspx
Ian
On Mon, Oct 29, 2012 at 02:16:14PM +0000, Ian Norton wrote:
> That is quite an old mono.
>
> Do you have any non-mono things that work with cp932?
>
> Ian
>
> On Mon, Oct 29, 2012 at 02:12:18PM +0000, Nathan Findley wrote:
> > Hi all,
> >
> > I have compiled Mono myself but am having a problem with a codepage not
> > being recognized. What compil options do I need to use and/or libraries
> > am I missing?
> >
> > Code:
> > System.Text.Encoding from_jp = System.Text.Encoding.GetEncoding(932);
> >
> > Error:
> > Unhandled Exception: System.NotSupportedException: CodePage 932 not
> > supported
> > at System.Text.Encoding.GetEncoding (Int32 codepage) [0x00000] in
> > <filename unknown>:0
> >
> > MONO Install:
> > yum install bison gettext glib2 freetype fontconfig libpng libpng-devel
> > libX11 libX11-devel glib2-devel libgdi* libexif glibc-devel urw-fonts
> > java unzip gcc gcc-c++ automake autoconf libtool make bzip2 wget
> >
> > cd /usr/local/src
> > wget http://download.mono-project.com/sources/mono/mono-2.10.5.tar.gz
> > tar zxvf mono-2.10.5.tar.gz
> > cd mono-2.10.5
> > ./configure --prefix=/opt/mono
> > make && make install
> >
> > System:
> > Fedora 15
> >
> > Mono JIT compiler version 2.10.5 (tarball Mon Sep 5 20:45:01 UTC 2011)
> > Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors.
> > www.mono-project.com
> > TLS: __thread
> > SIGSEGV: altstack
> > Notifications: epoll
> > Architecture: amd64
> > Disabled: none
> > Misc: debugger softdebug
> > LLVM: supported, not enabled.
> > GC: Included Boehm (with typed GC and Parallel Mark)
> >
> > Regards,
> > Nate
> >
> > --
> > ??????????????????????????????/???????????????
> > Zenlok????????????
> >
> > _______________________________________________
> > Mono-list maillist - Mono-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> _______________________________________________
> 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