Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kad1.4.2 Activiti Editor中文乱码 #56

Open
MicyToy opened this issue May 6, 2016 · 2 comments
Open

kad1.4.2 Activiti Editor中文乱码 #56

MicyToy opened this issue May 6, 2016 · 2 comments

Comments

@MicyToy
Copy link

MicyToy commented May 6, 2016

1111
1112
在ActivitiEditor里面编辑的流程,部署后中文乱码。 @henryyan

@MicyToy
Copy link
Author

MicyToy commented May 6, 2016

原因是me.kafeitu.demo.activiti.web.workflow.ModelController Line 105
Deployment deployment = repositoryService.createDeployment().name(modelData.getName()).addString(processName, new String(bpmnBytes)).deploy();
new String()使用的是平台默认编码,Windows是GB2312,editor生成是使用的UTF-8
指定string编码UTF-8就可以了。
Deployment deployment = repositoryService.createDeployment().name(modelData.getName()).addString(processName, new String(bpmnBytes, "UTF-8")).deploy();

@LucienYang
Copy link

qq 20160622171857
我改的是这里,结果也显示正常了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants