On Fri, 11 Dec 2015 13:29:28 +0100 "Jürgen Hestermann" <juergen.hesterm...@gmx.de> wrote:
>[...] > >An "UTF8String" and an "UTF8 String" are two different things for the > >compiler. See below. > > What is the difference? The link does not tell me. An "UTF8 String" is a String encoded in UTF-8. String and UTF8String are two different things for the compiler. My link explains some differences important for Lazarus. For full technical differences read http://wiki.lazarus.freepascal.org/FPC_Unicode_support and http://wiki.freepascal.org/Character_and_string_types > As fas as I know, there is no (useful) usage of LazUTF8-Routines > with strings of other encodings than UTF8. > So why is it used? > And was not the addition of encodings to strings > introduced to overcome all this encoding hassle? The string codepage attribute was introduced for Delphi compatibility. The encoding hassle is built into Windows. The compiler cannot overcome it. It can only give you tools to make it easier. Mattias -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus