See the
Code Page Wikipedia[
^] article:
Quote:
In computing, a code page is a table of values that describes the character set used for encoding a particular set of glyphs
Both terms are often used to describe the same. "Code Page" is used by operating systems while "Character Set" is used in the internet context (e.g. in HTML , XML, and mail headers).
The difference is that code pages are defined as numbers and character sets are represented by text strings. The code page number 923 for example corresponds to the character set "ISO-8859-15".
[
UPDATE for question posted as comment and solution]
Quote:
is there any way to convert character set to code page
There is no function to perform this task. You may implement a lookup table to map character set names to code page numbers. But note that there are often variations and aliases of character set names (e.g. the Windows character sets 125x use the prefixes "windows-" and "cp").
See also the MSDN Blog post
Expected names of Microsoft Windows "ANSI" Code Pages (Encodings)[
^].