29 lines
612 B
Plaintext
29 lines
612 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";
|
|
----
|
|
|
|
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
'''
|
|
== Comments And Links
|
|
(visible only on this page)
|
|
|
|
include::comments-and-links.adoc[]
|
|
endif::env-github,rspecator-view[]
|