Skip to content

Files

Latest commit

 

History

History
14 lines (7 loc) · 575 Bytes

readability-utf8.md

File metadata and controls

14 lines (7 loc) · 575 Bytes

Pattern: Invalid UTF-8 or replacement character

Issue: -

Description

Line contains invalid UTF-8 or Unicode replacement character.

Use the u8 prefix to guarantee that a string literal containing \uXXXX escape sequences is encoded as UTF-8. Do not use it for strings containing non-ASCII characters encoded as UTF-8, because that will produce incorrect output if the compiler does not interpret the source file as UTF-8.

Further Reading