W
W
Wan-Derer2021-12-11 14:11:13
Java
Wan-Derer, 2021-12-11 14:11:13

Spring Boot Actuator: how to enable Cyrillic?

In pom.xml we include:

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>


In application.properties we write:
management.info.env.enabled=true
info.app.encoding = @[email protected]
info.name = Приложение Spring Data Rest
info.description = Описание приложения
info.author = Автор приложения


We go to the address localhost:8080/actuator/info and see:
{
"app": {
    "encoding": "UTF-8",
},
"name": "ÐÑиложение Spring Data Rest",
"description": "ÐпиÑание пÑиложениÑ",
"author": "ÐвÑÐ¾Ñ Ð¿ÑиложениÑ"
}


How is that? UTF-8 and krakozyabry. How to do well? :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan, 2021-12-11
Hasanly @azerphoenix

In application.properties we write:

Good afternoon.
The encoding for Properties is ISO-8859-1
Default is none, using the java.util.Properties default encoding: ISO-8859-1.

Accordingly, you either need to write your own encoding converter, or convert online text in Russian gea-8 to ISO-8859-1.
Here is a related question:
https://stackoverflow.com/questions/48880095/how-c...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question