Why do I get an error from Lazarus (2.2.4) with the following example. The character in the following example is in the UTF-8 codepage and I don't understand why I get this message from the compiler. It's the same with other special characters.
var AStr: string; begin // this char is in the UTF-8 codepage [228 U+00E4 C3 A4 ä Latin Small Letter A With Diaeresis] AStr := 'ä'; // Error: Malformed UTF-8 string end;
UTF-8 Codepage https://www.charset.org/utf-8 (https://www.charset.org/utf-8)
Edit: I use Lazarus on Windows 7.
How did you generate the character in the Editor? Using CharMap or some other mechanism?