'Java. System.getenv(). Paragraph character (§) is not displayed properly in the environment variable value

I'm facing an issue. I have an environment variable that contains paragraph character in its value:

export VAR_1='somecharacters§othercharacters'

When I retrieve its value in Java code it displays ?? instead of §:

System.out.println(System.getenv(VAR_1));
-> somecharacters??othercharacters

Any idea how to fix such behaviour?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source