I am using IDEA Ultimate 2018.3 I checked https://stackoverflow.com/a/16308216/270835 and encoding is set to UTF-8
I have following String on one file -