Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have to convert using multibyte to wide char its using code page (shift jis is 932 and character set is 128) what is the difference between ..
Posted
Comments
[no name] 21-Apr-15 3:52am    
is there any way to convert character set to code page

1 solution

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)[^].
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900