If you are a East-Aisa prople,maybe you will find them.

Now let's test and write a program with East-Aisa language.
――――――――――――――――――――――
using System;
namespace Test
{
   public class Hello
   {
     public static void Main()
     {
         Console.WriteLine("你好");
     }
   }  
}

______________
It is a simple problem Like "Hello world", but use chinese.

In Windows(Language Chinese,codepage:936, GB2312),run
"mcs -codepage:936 Hello.cs",then get Hello.exe.

When We run the Hello.exe,In Console It don't show "你好",but
some strange characters.

In linux as same.

Now we test the program in another mode.

We use the tool "native2ascii" of JDK and run "native2ascii Hello.cs
hello1.cs",then we get Hello1.cs in ascii coding.

run "mcs -codepage:utf8 Hello1.cs" ,then get Hello1.ex.Run hello1.exe,
In windows we get right output "你好";

but in Linux it output some strange characters.


Strange?



Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
美女明星应有尽有,搜遍美图、艳图和酷图
1G就是1000兆,雅虎电邮自助扩容!

Reply via email to