Question: My laptop suffered a hard drive failure and i had to re-install IntelliJ and windows on a new hard drive.
In my old drive i was able to print (system.out.println) foreign languages in the console without any issues, but after the re-installation my console is not recognizing the text and i get an output like this 

```
????????????? ???? |
??????????-??? ??_???????-???

?????? ???????:
?????: ?????????-?????
????????? ??-?? ? 1-1 ?

```

i dont think its due to any error in my source, is there any way to configure my IDE to be able to recognize this text ( tamil in this instance but i need to support a large number of languages )

Thanks in advance,
Sumal.

Answer: 
In `Help` / `Edit Custom VM Options...` add:

```
-Dconsole.encoding=UTF-8
-Dfile.encoding=UTF-8

```

...and restart IDE :)

---

You can also edit file manualy from:

* `C:\Program Files\JetBrains\IntelliJ IDEA\bin\idea64.exe.vmoptions`

or

* `C:\Users\[YOUR_USER_NAME]\AppData\Roaming\JetBrains\IntelliJIdea2021.2\idea64.exe.vmoptions`

depending on what config file uses your IDE.

---

> 
> If you are using x86 version the file is named accordingly
> 
> 
>
For x64 version of the Executable, you have to find the file *idea64.exe.vmoptions* instead, and add the line `-Dfile.encoding=UTF-8` as others mentioned.