[Mono-list] Problem with MySql.Data.MySqlClient.MySqlConnection.Open() or System.Text.Encoding.GetEncoding()

Joshua Brickel joshuab@aquanet.co.il
Wed, 17 Nov 2004 15:52:50 -0200


This is a multi-part message in MIME format.
--------------040403090001010500020100
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

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




--------------040403090001010500020100
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I'm not sure if this is a problem with the MySql library or with a
System library.&nbsp; But what appears to be happenning is that&nbsp; the Method <font
 color="#3366ff">MySql.Data.MySqlClient.MySqlConnection.Open()</font>
appears to be calling <font color="#3366ff">System.Text.Encoding.GetEncoding("latin1");
<font color="#000000">The reason I say this is that the error I get
when trying to open a database is:<br>
<br>
</font></font>&nbsp;Unhandled Exception: System.NotSupportedException:
Encoding name `latin1' not supported<br>
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)<br>
<br>
And indeed if I run just the line <font color="#3366ff">System.Text.Encoding.GetEncoding("latin1")
</font>I get the same error of:&nbsp; <br>
Unhandled Exception: System.NotSupportedException: Encoding name
`latin1' not supported<br>
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)<br>
<br>
Now I figure this is a problem either with System.Text or with the
Mysql.Data Library.&nbsp; But I can not tell unless I can find documentation
of whether or not System.Text should support the string value of
"latin1".<br>
<br>
Does anyone know where the requirments for System.Text are kept?&nbsp; <br>
<br>
In addition, apparently I will not be able to get this library to work
with my MySql database unless I change the language encoding.&nbsp; Does
anyone have any experience on which charchter set is common to both
DotNet and MySql?<br>
<br>
Finally, does anyone know to Whom do I contact to see if I can be of
any help in the area of documentation?<br>
<br>
Regards,<br>
<br>
Joshua<br>
<br>
<br>
<br>
</body>
</html>

--------------040403090001010500020100--

II------------------------------------------------------------------------
II     AquaNet promises to take care and help its' customers stay safe       
II This Mail was Scanned By AquaNet's Anti-Virus Server And was Found OK!  
II              http://www.aquanet.co.il                                  
II------------------------------------------------------------------------