WideChar
A variable of type WideChar, which has a synonym of UnicodeChar (type UnicodeChar = WideChar;) , is exactly 2 bytes in size, and usually contains one Unicode character in UTF-16 encoding. As it is impossible to encode all Unicode code points (a code point normally corresponds to a character) in 2 bytes, two WideChars may be needed to encode a single code point.
As of version 3 of Free Pascal, the Char datatype is a synonym for an AnsiChar. However, in the future the Free Pascal compiler may consider Char a synonym for WideChar.
See also
From the Free Pascal wiki, page "WideChar", as it stood on 2016-07-21 after a change by Arent, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
