L
L
LikeKey2021-03-13 11:41:51
Java
LikeKey, 2021-03-13 11:41:51

How to compare Russian characters after building a project in Maven?

I uploaded the bot to a remote hosting, launched it, but it does not want to compare Russian characters. Compares more precisely, but incorrectly. At first I tried to find this error by setting System.out.println () at key points, and I realized that he simply simply cannot compare, enters the switch, and leaves it without choosing anything. In this case, Russian characters are displayed in the console as "?"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Roo, 2021-03-13
@xez

UTF-8 will solve this problem

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question