Hi,

You are kindof correct... In that yes the solution resides in updating a file and rcompiling.  If anyone else has such a problem here is the solution for mono version 1.0.4:

To quote the solution from Charles Martin:
[BeginQuote]

/root/mcs-1.0.4/class/corlib/System.Text/Encoding.cs (or wherever you put the source files)

Near line 393, there's a line that says something like

                        Latin1Encoding.ISOLATIN_CODE_PAGE,
                        "iso_8859_1"


Juste change the second one for

                        Latin1Encoding.ISOLATIN_CODE_PAGE,
                        "iso_8859_1", "latin1"


And recompile, everything should be fine !
[End Quote]

Regards,


Joshua


Reggie Burnett wrote:

I think this has been fixed in Mono, but I’m not sure.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Joshua Brickel
Sent: Wednesday, November 17, 2004 11:53 AM
To: [EMAIL PROTECTED]
Subject: [Mono-list] Problem with MySql.Data.MySqlClient.MySqlConnection.Open() or System.Text.Encoding.GetEncoding()

 

Hi,

I'm not sure if this is a problem with the MySql library or with a System library.  But what appears to be happenning is that  the Method
MySql.Data.MySqlClient.MySqlConnection.Open() appears to be calling System.Text.Encoding.GetEncoding("latin1"); The reason I say this is that the error I get when trying to open a database is:

 Unhandled Exception: System.NotSupportedException: Encoding name `latin1' not supported
in [0x000fe] (at /opt/src2/mono-all/1.0.4/mcs-1.0.4/class/corlib/System.Text/Encoding.cs:446) System.Text.Encoding:GetEncoding (string)

And indeed if I run just the line System.Text.Encoding.GetEncoding("latin1") I get the same error of: 
Unhandled Exception: System.NotSupportedException: Encoding name `latin1' not supported
in [0x000fe] (at /opt/src2/mono-all/1.0.4/mcs-1.0.4/class/corlib/System.Text/Encoding.cs:446) System.Text.Encoding:GetEncoding (string)

Now I figure this is a problem either with System.Text or with the Mysql.Data Library.  But I can not tell unless I can find documentation of whether or not System.Text should support the string value of "latin1".

Does anyone know where the requirments for System.Text are kept? 

In addition, apparently I will not be able to get this library to work with my MySql database unless I change the language encoding.  Does anyone have any experience on which charchter set is common to both DotNet and MySql?

Finally, does anyone know to Whom do I contact to see if I can be of any help in the area of documentation?

Regards,

Joshua



Reply via email to