[Mono-devel-list] UTF-8 variable names

Gonzalo Paniagua Javier gonzalo at ximian.com
Tue Jul 8 20:57:58 EDT 2003


El mar, 08-07-2003 a las 23:38, Markus Bertheau escribió:
> Hi,
> 
> I've been told that UTF-8 variable names should work, but indeed they
> aren't:
> 
> bert at saphir mono-test $ mcs HelloWorld.cs 
> syntax error, expecting CLOSE_PARENS COMMA SEMICOLON ASSIGN
> HelloWorld.cs(16) error CS1002: Expecting `;'
> Compilation failed: 1 error(s), 0 warnings

Try mcs -codepage:utf8 HelloWorld.cs

You have to tell the compiled the code page to use if it's not the
default encoding.

-Gonzalo





More information about the Mono-devel-list mailing list