K
K
kibergile2021-10-11 02:36:28
Java
kibergile, 2021-10-11 02:36:28

Why are Russian characters not accepted by the code?

I'm trying to display any Russian characters, but in the IDEA console there are only questions:
- I already indicated in the gradle build - I compileJava.options.encoding = 'UTF-8'
also set UTF-8 everywhere in the idea settings
- the characters are not only not displayed, but I also can't use them at all, for example, I'm trying to send request site.com/?q=котикиand writes llegal character in query at index N, but instead котики ??????

What to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EVGENY T., 2021-10-12
@Beshere

in build.gradle add
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question