admin console CRUD operation reject unicode charactors
|Reported by:||Owned by:||nobody|
|Severity:||Keywords:||admin Chinese error|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I test this on mysql. I create a model and a table in mysql, registered it on admin console.
I try input Chinese charactor with add function, and exceptin thrown like:
Warning at /admin/act/acttype/add/
Incorrect string value: '\xE4\xB8\xAD\xE6\x96\x87' for column 'type_name' at row 1
But the record can is created, with "?" character instead of normal input.
I'd tried to modified the characterset of the table from "latin" to "utf8", but still the same. I'd also tried "gbk" charset, no change at all.
Also the edit and delete function has the same exception throws. I think we should add a setting param to tell the program how to encode or decode the db input/output before db operations.
To show the error for you I'd uploaded the warning page in the attachment list, please have a look.