<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Sun, Apr 7, 2013 at 5:59 PM, Mattias Gaertner <span dir="ltr"><<a href="mailto:nc-gaertnma@netcologne.de" target="_blank">nc-gaertnma@netcologne.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">On Sun, 7 Apr 2013 13:35:40 +0200<br>
Kostas Michalopoulos <<a href="mailto:badsectoracula@gmail.com">badsectoracula@gmail.com</a>> wrote:<br>
<br>
>[...]I looked around in FPC 2.6.2's units and found nothing beyond<br>
<div class="im">> utf8encode/decode (which in linux requires a C widestring manager that i'd<br>
> like to avoid... and doesn't really help in all cases since Unicode can<br>
> exceed the 16bit range).<br>
<br>
</div>It does not require a widestring manager.<br>
<div class="im"><br></div></blockquote><div><br></div><div style>The documentation says otherwise:</div><div><a href="http://www.freepascal.org/docs-html/rtl/system/utf8encode.html">http://www.freepascal.org/docs-html/rtl/system/utf8encode.html</a><br>
</div><div>"For this function to work, a widestring manager must be installed."</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im"><br>
</div>See for example the Lazarus lazutf8 unit.<br>
<div class="im"><span style="color:rgb(34,34,34)">AFAIK there are no UTF16 functions either.</span><br></div>
Lazarus provides a lazutf16 unit too.<br>
<div class="im"><br></div></blockquote><div><br></div><div style>Is there a reason for those to be in Lazarus only? Can they be moved to FPC?</div><div><br></div></div></div></div>