[fpc-pascal] cwstrings unit and UTF8Decode()

Juha Manninen juha.manninen62 at gmail.com
Fri Mar 25 18:29:11 CET 2016


On Fri, Mar 25, 2016 at 7:14 PM, Bart <bartjunk64 at gmail.com> wrote:
> It's just a define to signal that all strings in LCL are UTF8 and when
> offered to RTL their codepage is CP_UTF8.

Not only in LCL. Package LazUtils / unit LazUTF8 can be used also without LCL.
  http://wiki.freepascal.org/Better_Unicode_Support_in_Lazarus#Using_UTF-8_in_non_LCL_programs

It means that when Graeme finally switches to FPC 3.x and he uses
LazUTF8 in his code, he gets cwstring as an extra bonus.

Regards,
Juha



More information about the fpc-pascal mailing list