Re: How to use UTF16 with .net
Posted by: Fernando Gonzalez Sanchez
Date: May 07, 2013 04:05PM

Correct,

This is a bug in Connector/NET, I opened a bug here: http://bugs.mysql.com/bug.php?id=69169

For the record both UTF16 and UTF32 are broken.

Workaround is to use UTF8mb3/UTF8mb4/UTF8.
like alter table actor convert to character set utf8mb4

The actual fix is very simple, adding a line
mapping.Add("utf16", new CharacterSet("utf-16BE", 2));
(if you want to rebuild the source yourself).

to method MySql.Data.MySqlClient.CharSetMap.LoadCharsetMap.

This fix should appear in next Connector/NET maintenance release.

Thanks for your bug report.

Options: ReplyQuote


Subject
Written By
Posted
Re: How to use UTF16 with .net
May 07, 2013 04:05PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.