数据库运行函数报错 1366 - Incorrect string value: '\xE7\xB3
字符集和my.ini里面全都改成了utf8还是报错
异常信息:服务端ModelBuilder_SetObjectPermission方法发生异常。MySql.Data.MySqlClient.MySqlException (0x80004005): Incorrect string value: '\xE5\xBB\xBA\xE6\xA8\xA1' for column 'objectname' at row 1在 MySql.Data.MySqlClient.MySqlStream.ReadPacket()在 MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)在 MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId)在 MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)在 MySql.Data.MySqlClient.MySqlDataReader.NextResult()在 MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)在 MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()在 ECA.Common.DbHelper.ExecuteNonQuery(String provider, DbConnection connection, CommandType commandType, String commandText, DbParameter[] commandParameters)在 ECA.Common.DbHelper.ExecuteNonQuery(String provider, String connectionString, CommandType commandType, String commandText, DbParameter[] commandParameters)在 EcaFramework.DBDAL.EcaModelBuild.SetObjectPermission(Int32 RoleID, Int32 OperatorCode, String strPermissionString, String strRightTypeCode, String ObjectName, String Object_DESC, String& strMessage)异常堆栈: 在 EcaClient.Runtime.WebDataServer.Send(WebParamter objWebParamter)是否有内部异常:无
修改字符编码