MySQL 连接器 .NET 和统一码
我在尝试让 MySql Connector for .NET 将 unicode 文本插入数据库时遇到一些严重问题。我读过很多关于此问题的论坛,但似乎没有一个修复程序有效。我已经尝试了以下所有内容及其各种组合:
- Append ;charset=utf8 to connection string
- Append ;character set=utf8 to connection string
- Use 'N' prefix (although, I believe this is for MsSql only, but was worth a try)
- Set utf8 collations for database, table and columns
- Issue this command: SET NAMES UTF8
- Issue this command: SET CHARACTER SET UTF8
- Tried both Direct ad-hoc query and MySqlParameter as ways to insert
我正在使用 MySqlConnector 6.4.3,无论我做什么,我都无法让这个可怜的东西工作。我快要失去理智了...
有人遇到过类似的问题并解决了吗?
预先非常感谢
马特
I am having some serious issues trying to get MySql Connector for .NET to insert unicode text into the database. I have read so many forums on this and none of the fixes seems to work. I have tried all fo the following and various combinations thereof:
- Append ;charset=utf8 to connection string
- Append ;character set=utf8 to connection string
- Use 'N' prefix (although, I believe this is for MsSql only, but was worth a try)
- Set utf8 collations for database, table and columns
- Issue this command: SET NAMES UTF8
- Issue this command: SET CHARACTER SET UTF8
- Tried both Direct ad-hoc query and MySqlParameter as ways to insert
I am using MySqlConnector 6.4.3 and no matter what I do, I cannot get this wretched thing to work. I'm about to lose my mind...
Anyone had a similar issue and fixed it??
Many thanks in advance
Matt
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论