[Mono-devel-list] encoding problem

Gonzalo Paniagua Javier gonzalo at ximian.com
Wed May 26 19:39:36 EDT 2004


El jue, 27-05-2004 a las 00:09, Sergey Moiseev escribió:
> > Dude, this is a ASP.NET control, not a C# source file.
> Sorry, my mistake ;)
> Missplace file in pine file selection dialog. After that, my admin
> reconfigured mail to /dev/null for some purposes. Now I again there with
> file that works on my box like this:
> [cut]
> mcs -codepage:1251 Rotator.ascx.cs
> syntax error, got token `ERROR', expecting ABSTRACT AS EXTERN INTERNAL IS
> NEW OPERATOR OVERRIDE PRIVATE PROTECTED PUBLIC READONLY SEALED STATIC THIS
> UNSAFE VIRTUAL VOLATILE OPEN_BRACE CLOSE_BRACE OPEN_BRACKET CLOSE_BRACKET
> OPEN_PARENS CLOSE_PARENS DOT COMMA COLON SEMICOLON OP_LT OP_GT BITWISE_AND
> BITWISE_OR STAR CARRET INTERR OP_LE OP_GE OP_EQ OP_NE OP_AND OP_OR
> IDENTIFIER
> Mono.CSharp.yyParser.yyException: irrecoverable syntax error
> in <0x0087e> Mono.CSharp.CSharpParser:yyparse
> (Mono.CSharp.yyParser.yyInput)
> in <0x00079> Mono.CSharp.CSharpParser:parse ()
> 
> Rotator.ascx.cs(1) error CS8025: Parsing error
> Compilation failed: 1 error(s), 0 warnings
> [cut]

I already replied to you in some other thread (may be mono-list). You
have to use -codepage:1200 as your file is encoded in UTF-16 (1200 is
the codepage for that encoding).

-Gonzalo





More information about the Mono-devel-list mailing list