[Lazarus] Lazarus (UTF8) and Windows: SysToUTF8, UTF8ToSys... Is there a better solution?

Marcos Douglas md at delfire.net
Mon Dec 16 16:43:41 CET 2013


On Mon, Dec 16, 2013 at 9:28 AM, Mattias Gaertner
<nc-gaertnma at netcologne.de> wrote:
> On Mon, 16 Dec 2013 09:22:54 -0200
> Marcos Douglas <md at delfire.net> wrote:
>
>> On Mon, Dec 16, 2013 at 7:41 AM, Mattias Gaertner
>>[...]
>> > Note:
>> > The Lazarus UTF8 functions are in the package LazUtils.
>> > You don't need to use the LCL (nor LCLBase) if you only need the
>> > UTF8 functions.
>> >
>> > Mattias
>>
>> You're right.
>> IMHO, the real problem is not to use LCL/LazUtils but having multiple
>> calls to SysToUTF8..UTF8ToSys in all code.
>
> The problem is not specific to the LCL. The problem is using libraries
> with different encodings.

Of course!
But I'm using Lazarus and... LCL... so, I'm searching a better way to
continue programming without concern about these problems -- at least
decrease.

Just for clarify: I'm not judging the LCL or whatever. I'm only
searching a solution to my problems. If I can help the Lazarus team,
in a near future, would be great.

>> Question:
>> After the new FPC version is released, how Lazarus will work together
>> "FPC Unicode"?
>
> What do you mean with "FPC Unicode". The new compiler feature
> of strings with encoding and various changes to the RTL or the idea to
> release a FPC flavor with dotted unitnames and String=UnicodeString?

I mean "new compiler feature of strings with encoding and various
changes to the RTL".
Lazarus will change something? Will use "FPC new feature of strings"
or continues using UTF8?

Best regards,
Marcos Douglas




More information about the Lazarus mailing list