折雨的天空

新浪微薄腾讯微薄

最新碎语:最近霉到了住。哎。。。

日志归档

2024年2月发布的文章

Uncaught mysqli_sql_exception: Incorrect string value: 'xF0x9Fx91x86xE5x85...' for column

php开发Uncaught mysqli_sql_exception: Incorrect string value: 'xF0x9Fx91x86xE5x85...' for column

阅读(193) 评论(0)

这个问题就是出在将emoji的表情,存入到MySQL的文本字段中。 网上很多方法解决,大多都是修改表的字符集。 我之前也遇到过,修改字符集确实也解决了,但这次,修改了库、表、字段的字符集。my.ini的配置也改了,还是不行 最后只能通过移除这个emoji字符来解决。 别人的方法: function removeEmojiChar($str) { ...
git统计提交信息的代码

其他技术git统计提交信息的代码

阅读(204) 评论(0)

--统计增删改数量 git log --remotes --format='%aN' | sort -u | while read name; do echo -en "$namet"; git log --remotes --author="$name" --pretty=tformat: --numstat --since="2023-01-01" --before="2...