Search code examples
javadecompilerjd-gui

Error in JD-GUI regarding variable names


When looking at a jar file with JD-GUI I keep getting some sort of display error. It seems to replace variable names/identifiers with the symbol ��� (which in JD-GUI looks like a red snowman, picture attached). Any idea of how to fix this? I tried googling around but wasn't able to describe my situation very well and could therefore not find anyone with the same problem. Thanks in advance! enter image description here


Solution

  • It looks like the identifier is unicode. You can fix that by using a decompiler like Procyon that escapes unicode. (You should be using Procyon anyway because JD-GUI is a poor decompiler).