[fpc-pascal] cwstrings unit and UTF8Decode()

Bart bartjunk64 at gmail.com
Fri Mar 25 13:20:23 CET 2016


On 3/25/16, Graeme Geldenhuys <mailinglists at geldenhuys.co.uk> wrote:

> I'm using FPC 2.6.4 primarily. Am I correct in that UTF8Decode and most
> (if not all) UTF8-to-UTF16 conversions don't function correctly (or not
> at all) if you don't include the cwstrings unit in your project? I
> referring to Unix-based OSes here.

If you're using LazUtf8 (or use LCL) then cwstring will be used in your app.
And I guess that Utf8ToUtf16 from Lazutf8 does not depend on a WS
manager, but I may be terribly wrong about that.

Bart



More information about the fpc-pascal mailing list