String Literal Encoding

Checks that all String and character literals contain only chars of a given encoding.

Name Description Default
encoding The allowed encoding within String and character literals. US-ASCII

The check will signal the use of characters in a different encoding. E.g. if you choose to only allow characters in ASCII encoding, the following will raise a warning, since there is a German umlaut.

String s = "Viel Glück!"

The properly encoded character (the 'ü' is replaced by '\u00fc') will not be signaled.

String s = "Viel Gl\u00fcck!"

Please consider using AnyEdit tools plugin for Eclipse to help convert characters of a different encoding the Unicode notation.