N
N
NameOf Var2017-03-30 12:13:37
Java
NameOf Var, 2017-03-30 12:13:37

How to combine Unicode characters in Java?

It is required to print the character X (\u0058) with an overslash ( ̅ ). (\u0305). How to combine these two characters?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Alexandrov, 2017-03-30
@jamakasi666

The focus lies in what exactly will draw this line. Those. if you do System.out.println(\u0058\u0305); then the Windows console will show 2 characters sequentially. it works extremely badly with unicode, some other console such as Makovsky or Linux non-standard can show one underlined character as it should. If this is a graphical component, then again it all depends on how well Unicode support is implemented in it.

D
Dmitry, 2017-03-30
@TrueBers

Well, so write"X" + "\u0305"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question