<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Am 30.08.2026 um 18:05 schrieb Juha
Manninen via fpc-pascal:<br>
</div>
<blockquote type="cite"
cite="mid:0944e3a2-95ed-42af-8795-9bea2e3c6d13@gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class="moz-cite-prefix">On 8/30/26 5:03 PM, Thomas Kurz via
fpc-pascal wrote:<br>
</div>
<blockquote type="cite"
cite="mid:162776713.20260830160308@smtp.mailbox.org">
<pre class="moz-quote-pre" wrap="">That is interesting and exactly what I'd like to have. How can I do that?
</pre>
</blockquote>
<p>It is enabled automatically in LCL GUI apps. In a console
program you must add unit <b>LazUTF8</b> to uses section.
That's all.</p>
<p>See: <a class="moz-txt-link-freetext"
href="https://wiki.lazarus.freepascal.org/Unicode_Support_in_Lazarus"
moz-do-not-send="true">https://wiki.lazarus.freepascal.org/Unicode_Support_in_Lazarus</a></p>
<p>for details.</p>
</blockquote>
<p>You don't need LazUTF8 anymore with recent FPC versions. FPC has
everything built-in. (I don't like Lazarus dependencies in console
applications.)<br>
</p>
<p>Set these 3 CodePages to CP_UTF8:<br>
SetMultiByteConversionCodePage(CP_UTF8);<br>
SetMultiByteRTLFileSystemCodePage(CP_UTF8);<br>
SetMultiByteFileSystemCodePage(CP_UTF8);<br>
</p>
<p>and you are good to go.</p>
<p>Ondrej<br>
</p>
</body>
</html>