It works fine in Mono on windows, so I would look at your Linux distribution

C:\Documents and Settings\huskeyw\My Documents\SharpDevelop
Projects\charTest\bi
n\Debug>mono charTest.exe
áéíóaoç
teste éééííó


my code
using System;
using System.Collections.Generic;

namespace charTest
{
   class MainClass
   {
       public static void Main(string[] args)
       {
           System.Threading.Thread.CurrentThread.CurrentCulture = new
System.Globalization.CultureInfo("pt-BR");
           Console.WriteLine("áéíóãõç");

           Console.WriteLine("teste éééííó");
           Console.ReadKey();
       }
   }
}


my mono version

n\Debug>mono --version
Mono JIT compiler version 1.2.4 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
       TLS:           normal
       GC:            Included Boehm (with typed GC)
       SIGSEGV:       normal
       Architecture:  x86
       Disabled:      none



On 6/22/07, Ivan de Queiroz <[EMAIL PROTECTED]> wrote:

Hi!

I am writing a console application, but, i having a problem with
encoding. If i write a message with non-us characters (áéíóãõç), i get
'????'

I change the current cultureinfo, but, no success...

my code:

using System;

namespace teste
{
    public class teste
    {
        public static void Main(string[] args)
        {
            System.Threading.Thread.CurrentThread.CurrentCulture = new
System.Globalization.CultureInfo("pt-BR");
            Console.WriteLine("teste éééííó");
        }
    }
}

Note: i am using remoting in my project.... the object is serialized, and
international characteres are replaced to '???'... it´s a bug in mono or in
my brain?

Thank´s for any help


--
Ivan
:wq!
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list




--
William S. Huskey

UNIX Systems Engineer

Maritime Systems Solutions Division

SAIC

Tel: 425-267-5643

Email: [EMAIL PROTECTED]
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to