cancel
Showing results for 
Search instead for 
Did you mean: 

probe and explorer show process picture problem

greenwood
Champ in-the-making
Champ in-the-making
hi

Task Name in my process file was Chinese , and in probe and explorer ,the picture has some problem when it show up .

I upload my picture below :
13 REPLIES 13

frederikherema1
Star Contributor
Star Contributor
Don't think this is an encoding issue. Looks like the font that is used to generate the node names in our generator, doesn't have the required characters so it just shows rectangles.

Can you create a JIRA for this, and maybe attach a problematic process-definition bpmn20.xml file?

jbarrez
Star Contributor
Star Contributor
There is already a Jira for not being able to display Chinese.

I did some research on it, and it appears to be fixeable by changing the font. However, none I tried (of the JDK fonts) was able to display chinese.

greenwood
Champ in-the-making
Champ in-the-making
hi

Will this issue be fixed in next version ?


thanks

jbarrez
Star Contributor
Star Contributor
No, I'm afraid not. I already invested some time in it, but it seems quite complex to fix. So if you have any insight in how you could do it easily in Java, please post it here.

springlee
Champ in-the-making
Champ in-the-making
No, I'm afraid not. I already invested some time in it, but it seems quite complex to fix. So if you have any insight in how you could do it easily in Java, please post it here.


hi,I got the same problem too. The task name is Chinese Character ,so it can not display the task name correctly.

eg. 

InputStream imageStream = processEngine.getRepositoryService().
                                                          getResourceAsStream(processDefinition.getDeploymentId(),diagramResourceName);


By this way, i can't got correct image file in jsp.(the image  has invalid character). Is there any solution? I need to resolve as soon as possible for.
   Thank you .
[attachment=0]demo.png[/attachment]

frederikherema1
Star Contributor
Star Contributor
@jbarrez: Maybe it's a solution to allow setting in the font name to use for the diagram generation in config? So chinese users can use specific font…

jbarrez
Star Contributor
Star Contributor
@Frederik: its not enough to specify the font. The font must also be found by the JVM, so you must put it in some strange location on your classpath.
So I'm hoping there is a simpler solution to the problem….

greenwood
Champ in-the-making
Champ in-the-making
hi

have you try using this font "Arial Unicode MS" ?

jbarrez
Star Contributor
Star Contributor
Is that one shipped with every Oracle (Sun) JDK ?