dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU]Problems with UTF-8


From: Rhys Weatherley
Subject: Re: [DotGNU]Problems with UTF-8
Date: Tue, 25 Nov 2003 07:19:14 +1000
User-agent: KMail/1.4.3

On Tuesday 25 November 2003 12:43 am, brunoacf wrote:

> class utftest
> {
>     public static void Main ( ) {
>         System.Console.WriteLine
> ("Protégé");
>     }
> }

Are you sure that is UTF-8?  It looks like Latin-1 to me.  Try using the 
"-flatin1" option to cscc and see what happens.

In general, it is a bad idea to embed non-English characters in source code.  
Use a sequence like "\u00E9" instead.  It is guaranteed to work on any C# 
compiler, and won't get accidentally corrupted when transferred between 
systems.

Cheers,

Rhys.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]