UnicodeToShort Routine |
Unit
IcXMLStrings
Declaration
Function UnicodeToShort(s : TDOMString; cp : TEncoding; bo : TByteOrder): string;
Description
For UTF-16 encoding strings are copied byte-per-byte, so that one wide char is repleaced with two short chars. Order of short chars depends specified byte order. For UTF-8 one char is repleaced with belong chars. For other encodings chars are converted according to encoding convertion tables.
|