Well, I think this has been fixed in the cvs but not in the realeased tarball I thnk.

I recompiled mono with the following changes and it fixed the problem :

/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 !

Have fun !

P.S. There's a bug-report with the correspond bugfix for this but I haven't bookmarked it...



Charles Martin  Programmeur analyste
819.378.4242    acolytecommunication.com
[EMAIL PROTECTED]



Joshua Brickel wrote:
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