[Mono-devel-list] Special Characters
monoman at gmail.com
Thu Dec 23 15:14:01 EST 2004
Probably your source file is in some other encoding than windows-1252,
probably utf-8, you have to instruct mcs to recognize it using the
-codepage command line option. For utf-8 you use:
mcs -codepage:utf8 yoursource.cs ...
I still don't like this new behaviour in mcs, but we still could not
be the necessary supporting classes as smart as the logic MS's C#
compiler (csc.exe) uses to discover if a file is encoded in utf-8,
even if the BOM marker based signature
(http://www.unicode.org/faq/utf_bom.html#BOM) is not present, as is
normally generated by most linux text editors nowadays...
Hope it helps,
On Thu, 23 Dec 2004 13:45:30 +0100, Pablo Cardona <pcardona37 at gmail.com> wrote:
> Hi, I have problem trying to show in console diferent especial
> characters, like ñ (ascii 164), which is an important character in
> Instead of appears this special character in the console, appears
> another character.
> I've tried to reconfigure locales with different types of locales but
> the problem still continues.
> I've also tried to show this character in console with a little
> program in C, and the character is shown properly.
> I'm using only this method: Console.WriteLine("ñ");
> So I don't know if it is a problem about the configuration of the
> console, or I'm not doing it well with MONO.
> So if anybody can help me please reply.
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
Rafael "Monoman" Teixeira
I'm trying to become a "Rosh Gadol" before my own eyes.
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
More information about the Mono-devel-list