mysql低版本针对超过3个字符的UTF-8字符保存出错。
解决方法1:直接过滤
private string test(string str)
{string result = Regex.Replace(str, @"\p{Cs}", "");
return result;
}
参考 http://blog.youkuaiyun.com/fengsh998/article/details/8639157
http://stackoverflow.com/questions/28023682/how-do-i-remove-emoji-characters-from-a-string
http://blog.youkuaiyun.com/fuxuejun/article/details/20361669