[Mono-dev] mysql connector error

Rafael Teixeira monoman at gmail.com
Mon Oct 15 11:52:02 UTC 2012

Seems like a problem with the supported character sets in Mono (some are
only available if your install additional packages), or with the list of
aliases for the encodings, (utf_8 and UTF-8 should be the same, for

For some details on I18N for Mono see:

Looking the source
starting at
line 584, you can see the base aliases supported ('utf8' without the dash
is not supportted, for example, but 'latin1' should work).

Please open an issue asking for the aliases that you know work with .NET
(in which version?), and another asking for addition of the latin5 encoding
if it is not supported in the extension I18N libraries. Pull requests with
source changes to implement what is lacking are very welcome!!!

For now if you want Turkish 'latin5', add the MidEast I18N extension lib,
and ask for encoding 'iso-8859-9'.

Have fun, eğlenmek

Rafael "Monoman" Teixeira
"The most exciting phrase to hear in science, the one that heralds new
discoveries, is not 'Eureka!' (I found it!) but 'That's funny ...'"
Isaac Asimov
US science fiction novelist & scholar (1920 - 1992)

On Mon, Oct 15, 2012 at 3:09 AM, Fatih Soydan [Personal] <
fatihsoydan at fatihsoydan.com> wrote:

> **
> System.ArgumentException: Encoding name 'latin5' not supported
> Parameter name: name
>   at System.Text.Encoding.GetEncoding (System.String name) [0x00000] in
> <filename unknown>:0
> _____________________________________________
> *******From:* Fatih Soydan [Personal] [mailto:fatihsoydan at fatihsoydan.com<fatihsoydan at fatihsoydan.com>
> ]
> *******Sent:* Monday, October 15, 2012 8:53 AM
> *******To:* mono-devel-list at lists.ximian.com
> *******Subject:* mysql connector error
> Hi;
> I want to connect a mysql db from mono Project with mysql connector. When
> i use Windows and .net framework 4, everthing is ok. But when i use mono, i
> have a problem.
> When i use this connection string :
> Server=;Database=adb;Uid=root;Pwd=apass;Allow Zero
> Datetime=true;Character Set=*latin5*;
> Server said that :
> Encoding name 'latin5' not supported Parameter name: name
> But problem is not limited about latin5, same issue on utf8, latin1  …
> If i select a wrong  character set, it's working like this :
> Server=;Database=ark_ adb;Uid=root;Pwd= apass;Allow Zero
> Datetime=true;Character Set=*ThereIsAProblem*;
> I am very confused … Please help …
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20121015/4773d1f1/attachment-0001.html>

More information about the Mono-devel-list mailing list