[fpc-pascal] Char, WideChar, String and WideString in FPC/Lazarus

Borut Maricic borut.maricic at pobox.com
Thu Jul 6 16:29:52 CEST 2006

I would like to ask some questions regarding the following:

A NOTE has been added to this issue.
Date Submitted:             2006-07-06 15:45 CEST
Last Modified:              2006-07-06 15:52 CEST
Summary:                    Array with char index could not compile
An array that uses Char for its index could not compile when index is a
cyrillic character. Perhaps not working with all characters except
See program source.<<

What is the exact definition of the type Char and String in FPC?

Please confirm or deny my following statement: "A variable of type String
may contain an UTF-8 encoded string, i.e. a programmer using UTF-8 in
strings should keep in mind the consequences (no 1:1 mapping between
graphems and bytes, i.e. iterating over bytes is NOT equal iterating over
graphems encoded in the string bytes)."

I am not new to Unicode etc. and would like to use this opportunity to
clarify these issues. Thanks.

More information about the fpc-pascal mailing list