[Mono-devel-list] encoding problem

bopm bopm at udaff.com
Wed May 26 12:18:17 EDT 2004


Ok, what I get. If I build from utf-8 encoded fileI get this one:
--cut--
mcs /t:library /out:bin/WebApplication2.dll -r:System.Web -r:System.Data 
-r:System.Drawing AssemblyInfo.cs WebForm1.aspx.cs ShowPanel.aspx.cs 
Rotator.ascx.cs ImageButton.aspx.cs Global.asax.cs -codepage:"utf8"
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--
Another question: mcs --help won't get me explaination about type 
of that codepage 
id. If I try something like -codepage:ru_RU.CP1251 I get error CS2016: 
Code page '-1' is invalid or not installed.
Sorry if my question is lame, and another for my poor english.

-- 
wbr, Sergey 'bopm' Moiseev.

On Wed, 26 May 2004, Gonzalo Paniagua Javier wrote:

> El miй, 26-05-2004 a las 12:22, bopm escribiу:
>> I build simple asp.net application ported from VS.NET. In web component
>> there is some text in ru_RU.CP1251. After build I see that my text
>> transforms into ISO-8859-1 before converting in UTF-8. What I need to
>> change in my system/project for stop this transformation?
>
> Is that a .cs source file? If so, you need to pass -codepage option to
> mcs (see mcs --help) or make your files be UTF8 encoded.
>
> -Gonzalo
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>


More information about the Mono-devel-list mailing list