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

Marcos Douglas md at delfire.net
Wed Dec 18 16:11:55 CET 2013


On Wed, Dec 18, 2013 at 3:56 AM, Martin Schreiber <mse00000 at gmail.com> wrote:
> On Wednesday 18 December 2013 02:52:49 Marcos Douglas wrote:
>>
>> I would like to understand: Why Java, .Net and others use UTF-16 as
>> default encode and why Lazarus team chose UTF-8?
>>
> One reason is that Free Pascal did not support utf-16 at the time Unicode
> became urgent and later the FPC implementation of utf-16 strings was buggy.
> So there was no other choice than to use utf-8 in standard FPC 8 bit strings.



On Wed, Dec 18, 2013 at 5:05 AM, Michael Van Canneyt
<michael at freepascal.org> wrote:
>
> On Tue, 17 Dec 2013, Marcos Douglas wrote:
>
>> On Tue, Dec 17, 2013 at 11:16 PM, Marcos Douglas <md at delfire.net> wrote:
>>>
>> [...]
>>
>> I would like to understand: Why Java, .Net and others use UTF-16 as
>> default encode and why Lazarus team chose UTF-8?
>
> The impact of switching to UTF-8 is less when you care about backwards
> compatibility.

Now I understand. Thank you Martin and Michael .

Marcos Douglas




More information about the Lazarus mailing list