[fpc-devel] Unit for handling UTF-8 strings

Michael Van Canneyt michael at freepascal.org
Sun Apr 7 20:18:51 CEST 2013

On Sun, 7 Apr 2013, Kostas Michalopoulos wrote:

> On Sun, Apr 7, 2013 at 5:59 PM, Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:
>       On Sun, 7 Apr 2013 13:35:40 +0200
>       Kostas Michalopoulos <badsectoracula at gmail.com> wrote:
>       >[...]I looked around in FPC 2.6.2's units and found nothing beyond
>       > utf8encode/decode (which in linux requires a C widestring manager that i'd
>       > like to avoid... and doesn't really help in all cases since Unicode can
>       > exceed the 16bit range).
> It does not require a widestring manager.
> The documentation says otherwise:
> http://www.freepascal.org/docs-html/rtl/system/utf8encode.html
> "For this function to work, a widestring manager must be installed."
> See for example the Lazarus lazutf8 unit.
> AFAIK there are no UTF16 functions either.
> Lazarus provides a lazutf16 unit too.
> Is there a reason for those to be in Lazarus only? Can they be moved to FPC?

FPC is preparing for a complete unicode solution, with proper language support. 
At best, these units are a temporary solution.


More information about the fpc-devel mailing list