How to view Unicode encoded strings in Intellij Idea debugger data view? e.g. consider following code
String str = "सुझाव"; //some Unicode string: utf-8
String str1 = "\u0938\u0941\u091d\u093e\u0935";
System.out.println(str);
Not able to view the variable- str - in data view of debugger, it shows garbage value. Even though set value shows proper value.
Any suggestions/work-arounds?
Probably, missing some encoding setting somewhere.
Check project encoding. I have same issue. Idea shows variables content encoding in WIN-1252.
In version in Editor > File Encodigs
you have: IDE Encoding
, and Project Encoding
. After changing Project Encoding
to UTF-8 everything looks ok.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With