A string constant is a string enclosed in single straight quotation marks. The characters are coded according to the character set specified in ISO/IEC 8859-1. Therefore, a string constant can include spaces and accented characters, as these belong to this character set. This is also referred to as a string literal, or simply a string.
However, when the “UTF-8 Encoding for STRING” compile option is enabled, the string literal is interpreted in UTF-8 format. This encoding is compatible with ASCII as well as Latin-1. Therefore, the hexadecimal codes and the control-character special cases are also valid in UTF-8.
Example: 'Hello world!'
String literals are not checked for compatibility. As a result, the text editor allows
the input of all characters. However, the compiler compiles unknown characters with
?
.
-
Hexadecimal code