2012年8月10日

Asp.net 调用mysql存储过程参数传中文乱码!

摘要: <add name="xxx" connectionString="server=10.10.xx.xx;User Id=xxx;password=xxxx;database=xxxx;Port=3306;character set=utf8;"/>在web.config中进行编码设置:character set=utf8;调用存储过程方法:MySqlCommand cmd = new MySqlCommand(procedureName, con);cmd.CommandType = CommandType.StoredProcedure; 阅读全文

posted @ 2012-08-10 17:42 浪迹上海滩 阅读(424) 评论(0) 推荐(0) 编辑

导航