[Mono-list] Default Encoding for Console.In/Out/Err

Alan Tam Tam@SiuLung.com
Wed, 22 Jan 2003 03:30:33 +0800


Dear All,

I am experiencing problem when the TextWriter in Console all have encoding
System.Text.ASCIIEncoding.

I traced into the source and found that it is from
Encoding.UnixConsoleEncoding, which is built from Encoding.Default and in
turn from here:

        [MethodImpl (MethodImplOptions.InternalCall)]
        extern private static string InternalCodePage ();

Is it something like a native method in Java? Where can I find the source
code?

Or does anyone know how I can manipulate the default value? It seems the
LANG and LC_* environment variables do not help.

Thanks!

Regards,
Alan