$codePage
The global compiler directive {$codePage} indicates how to interpret string literals.
available code pages
The FPC can understand following code pages:
<thead>
</thead> <tbody>
<code>{$codePage UTF8}</code></td>
</tbody>
The code page can be selected either via a compiler directive or as a command-line parameter: ‑Fc… (where … is one of the code page names listed above).
use
Since FPC 3.0.0 every ANSIString is associated with a CP.
see also
From the Free Pascal wiki, page "$codePage", as it stood on 2023-11-11 after a change by Bart, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.