Back to Intellij Community

ConvertToBasicLatin

java/java-impl/resources/inspectionDescriptions/ConvertToBasicLatin.html

2025.3-rc-2453 B
Original Source

Reports non-Basic Latin characters in literals and comments. The inspection provides a fix to replace such characters with Unicode escapes in literals, and with HTML entities in comments.

Example:

// © 2021
  char c = '©';
  String s = "Áî";

After the quick-fix is applied:

// © 2021
  char c = '\u00a9';
  String s = "\u00c1\u00ee";

By default, this inspection does not highlight in the editor, but only provides a fix.