Am 13.10.2011 09:49, schrieb Michael Schnell:
Moreover seemingly there is (or will be, or in Delphi XE is) a type called UnicodeString. In the Delphi docs UnicodeString is said to be supposed to hold UTF-16 encoded data. But this of course is due to the string Windows-Binding of Delphi. On Linux obviously UTF-8 is more appropriate. FPC might overcome the problem by not determine conversion at runtime with UnicodeString, allowing for UTF-8, UTF-16 (and maybe any other) encoding ID with this type without making the variable an intersexual string.
Since FPC 2.4 there also is a UnicodeString in FPC which is compatible to the one in Delphi: a reference counted 2-byte-per-character string type. This is unlike the WideString type which exists because of COM compatibilty and is not reference counted (please note that on non-Windows platforms WideString is defined as an alias of UnicodeString as there is no need for COM compatibilty there).
Regards, Sven _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel