Workflow Chinese garbled, workflow Chinese garbled
Introduction: I recently developed a workflow and found that the flowchart contains Chinese garbled characters. There are many solutions on the Internet. I personally feel that it is relatively simple and straightforward to directly modify the activiti source code, the operation is not complex. Next, let's briefly describe my personal operation steps.
Source code modification:
First download the activiti source code and find the ProcessDiagramCanvas class under org. activiti. engine. impl. bpmn. di.pdf,
You will find the following words:
String activityFontName = "Arial ";
Font LABEL_FONT = new Font ("Arial", Font. ITALIC, 10 );
This is the direct cause of Chinese Garbled text. You can solve the problem by changing "Arial" to ".
Then compile ProcessDiagramCanvas. java into a class file, replace the activiti-engine-5.12.1.jar
ProcessDiagramCanvas. class in it, and then re-import the package. The garbled characters will disappear.
Source code: http://download.csdn.net/detail/javaweiming/8299379