Workflow Chinese garbled, workflow Chinese garbled

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.