17 lines
447 B
Plaintext
17 lines
447 B
Plaintext
The use of Unicode escape sequences should be reserved for characters that would otherwise be ambiguous, such as unprintable characters.
|
|
|
|
|
|
This rule ignores sequences composed entirely of Unicode characters, but otherwise raises an issue for each Unicode character that represents a printable character.
|
|
|
|
== Noncompliant Code Example
|
|
|
|
----
|
|
String prefix = "n\u00E9e"; // Noncompliant
|
|
----
|
|
|
|
== Compliant Solution
|
|
|
|
----
|
|
String prefix = "née";
|
|
----
|