SYNAPSE - Synchronous TCP/IP Library for Delphi
Other related information can be found at http://www.ararat.cz/synapse/
Unit: MimeChar
- Types:
- Type TMimeChar
Type with supported character coding pages. Values are: ISO_8859_1, ISO_8859_2, ISO_8859_3, ISO_8859_4, ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8, ISO_8859_9, ISO_8859_10, CP1250, CP1251, CP1252, CP1253, CP1254, CP1255, CP1256, CP1257, CP1258, KOI8_R, UCS_2, UCS_4, UTF_7 and UTF_8.
- Misc. functions:
- Function DecodeChar(value:string;CharFrom:TMimeChar;CharTo:TMimeChar):string
Convert value string from Charfrom charset to CharTo charset.
- Function GetCurCP:TMimeChar
Return current codepage used by system.
- Function GetCPfromID(value:string):TMimeChar
Translate string with MIME ID (i.e. x-windows1252) to TMIMEChar. If String is not recognised, returned is ISO-8859-1 character page.
- Function GetIDfromCP(value:TMimeChar):string
Translate Value to MIME string ID (i.e. x-windows1252).
- Function NeedEncode(value:string):boolean
Returned false, if value not contains character with code larger than 128, witch is need to character recoding.
- Function IdealCoding(value:string;CharFrom:TMimeChar;CharTo:TSetChar):TMimeChar
Automaticky select the best target conding from CharTo (set of TMimeChar).