Menu Content/Inhalt
Start arrow HS Object Kernel arrow HS OK - Articles arrow Basics of the construction and functionality of HSOK
Basics of the construction and functionality of HSOK: Unicode support Print
20 June 2007
Article Index
THSField class
THSBaseObject class
THSObject class
THSBaseList and descendants
"Weak" and "strong" references
Unicode support
XML support
The kernel object

Unicode support

HSOK supports two Unicode types :

  1. WideString - represented by THSWideStringField class
  2. TWideStringList (like TStringList) - represented by THSWideStrListField class

Values of fields of type WideString and TWideStringList are read and written from/to text files in UTF-8 format. To convert them we use WideStringToUTF8 and UTF8ToWideString functions from the HSUnicode module. THSObjectGrid component supplied with HSOK package is able to draw the content of these fields, but only if a proper font is chosen (that means supporting Unicode characters, e.g. Arial). Sorting and searching using these fields uses native Delphi WideString comparison methods.