This class is meant to convert text strings between different character set encodings. These are the main features of the class:
- Conversion between 1 byte character sets
- Conversion from 1 byte to multi byte character set (utf-8)
- Conversion from multibyte character set (utf-8) to 1 byte character set
- Every conversion output can be save with numeric entities (browser character set independent)
This is a list of character sets you can operate with. The main requirement is that a character has to be in both character sets, otherwise it will return an error.
WINDOWS
windows-1250 - Central Europe
windows-1251 - Cyrillic
windows-1252 - Latin I
windows-1253 - Greek
windows-1254 - Turkish
windows-1255 - Hebrew
windows-1256 - Arabic
windows-1257 - Baltic
windows-1258 - Viet Nam
cp874 - Thai - this file is also for DOS
DOS
cp437 - Latin US
cp737 - Greek
cp775 - BaltRim
cp850 - Latin1
cp852 - Latin2
cp855 - Cyrylic
cp857 - Turkish
cp860 - Portuguese
cp861 - Iceland
cp862 - Hebrew
cp863 - Canada
cp864 - Arabic
cp865 - Nordic
cp866 - Cyrylic Russian (this is the one, used in IE "Cyrillic (DOS)" )
cp869 - Greek2
MAC (Apple)
x-mac-cyrillic
x-mac-greek
x-mac-icelandic
x-mac-ce
x-mac-roman