"?z?o?e" 这种特殊字符XORM好像无法入库 #936

Open
opened 2018-05-10 08:46:21 +00:00 by georgehao · 1 comment
georgehao commented 2018-05-10 08:46:21 +00:00 (Migrated from github.com)

"?z?o?e" 这种特殊字符XORM好像无法入库

数据库字段是utf8mb4_general_ci类型

打印xorm sql日志, 把日志粘贴出来, 在命令行中执行, 可以正常入库.

但是使用代码就无法入库

"?z?o?e" 这种特殊字符XORM好像无法入库 数据库字段是utf8mb4_general_ci类型 打印xorm sql日志, 把日志粘贴出来, 在命令行中执行, 可以正常入库. 但是使用代码就无法入库
modifMX commented 2018-06-17 12:04:49 +00:00 (Migrated from github.com)

需要处理,在入库。 特殊类型入库不安全。 记得ios,某些特殊字符串奔溃问题

需要处理,在入库。 特殊类型入库不安全。 记得ios,某些特殊字符串奔溃问题
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xorm/xorm#936
No description provided.