datamodel-code-generator
datamodel-code-generator copied to clipboard
code generat fail, if json contain specific chinese
Describe the bug if json contain specific chinese, code generat will fail. specific chinese like :陳
To Reproduce
Example schema:
{
"nickName": "陳老師",
}
Used commandline:
$ datamodel-codegen --input test_json_data.json --input-file-type json --output test_json_data_model.py
Expected behavior success generat if json contain specific chinese
Version:
- OS: [e.g. iOS] windows
- Python version: 3.10.11
- datamodel-code-generator version: [e.g. 22] 0.25.2
Additional context Add any other context about the problem here.
more fail specific chinese like : 王,黑,白
not all chinese have this problem, There is no problem below: 老师,测试