[Mono-devel-list] encoding problem

bopm bopm at udaff.com
Wed May 26 13:18:33 EDT 2004


Here it is. Encoding ru_RU.cp1251.

-- 
wbr, Sergey 'bopm' Moiseev.

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

> El miй, 26-05-2004 a las 18:42, bopm escribiу:
>>>> 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
>>>
>>> May be your files don't have the UTF8 mark bytes at the beginning.
>> In this case I use --codepage:"utf-8"
>>>
>>> ID must be either utf8, reset or a number. In your case: -codepage:1251
>>>
>> If I build my app with -codepage:1251 I get same error as in utf-8 case.
>
> Can you send the file if it's not too big?
>
> --
> Gonzalo Paniagua Javier <gonzalo at ximian.com>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="Rotator.ascx.cs" Inherits="WebApplication2.Rotator" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>

<asp:Label id="Label1" runat="server">Label</asp:Label>



More information about the Mono-devel-list mailing list