Problem displaying special characters in Java operation

Post here questions and problems related to oXygen frameworks/document types.
fhorn
Posts: 18
Joined: Mon Dec 09, 2013 7:47 pm

Problem displaying special characters in Java operation

Post by fhorn »

Hello,

in our project we use the Java operation InsertRegisterAttributeOperation
(https://github.com/telota/ediarum/wiki/ ... -operation) for an action in
our framework, the Java operation is part of ediarum.jar.

The operation is used to open a dialogue where the user can select an
entry from an index file. I discovered the problem that some special
characters were not displayed correctly in the select list, they were
replaced with a square.

Here are some examples ł (ł), ğ (ğ) and Ḳ (Ḳ).

The characters are displayed correctly in editor, in author as well as
text mode. I set a font able to render the special characters in the
"Font preferences" (Arial and Tahoma).

This might be a rather specific question and of course, the Java operations
from the archive ediarum.jar weren't developd by the oXygen team. Maybe you
have some hints?

Regards
Franziska
Radu
Posts: 9470
Joined: Fri Jul 09, 2004 5:18 pm

Re: Problem displaying special characters in Java operation

Post by Radu »

Hi Franziska,

You should probably try to set a certain font also on the List used to show the entries in the dialog.
Someting like:

Code: Select all


list.setFont(new Font("Arial", Font.PLAIN, 12))
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
fhorn
Posts: 18
Joined: Mon Dec 09, 2013 7:47 pm

Re: Problem displaying special characters in Java operation

Post by fhorn »

Hello Radu,

thank you very much for your quick response,
we will try that out.

Regards
Franziska
Post Reply