Click here to Skip to main content
15,908,254 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalget wide character and multibyte character value Pin
George_George23-Jan-08 20:10
George_George23-Jan-08 20:10 
GeneralRe: get wide character and multibyte character value Pin
Nitheesh George23-Jan-08 22:49
Nitheesh George23-Jan-08 22:49 
GeneralRe: get wide character and multibyte character value Pin
George_George23-Jan-08 23:28
George_George23-Jan-08 23:28 
JokeRe: get wide character and multibyte character value Pin
CPallini23-Jan-08 23:34
mveCPallini23-Jan-08 23:34 
GeneralRe: get wide character and multibyte character value Pin
George_George24-Jan-08 1:31
George_George24-Jan-08 1:31 
QuestionRe: get wide character and multibyte character value Pin
CPallini24-Jan-08 1:47
mveCPallini24-Jan-08 1:47 
GeneralRe: get wide character and multibyte character value Pin
George_George24-Jan-08 2:00
George_George24-Jan-08 2:00 
GeneralRe: get wide character and multibyte character value Pin
CPallini24-Jan-08 2:19
mveCPallini24-Jan-08 2:19 
George_George wrote:
1. To get the wide character binary value, I use L"MÍST" and use debug mode to watch its internal buffer in Visual Studio.

Fine. Since wide chars are unsigned shorts, I'm sure you're also able to figure out how programmatically find the encoded values.


George_George wrote:
To get the multibyte (UTF-8) binary value, I use WideCharacterToMultibyte API to convert L"MÍST" to multibyte value;

When you use WideCharacterToMultibyte you must be aware that (of course) not all wide string characters can be mapped to the codepage you're specifying (I'm not an expert, but I think CP_UTF8 gives you have unmapped chars than Czech codepage (1250?))
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

[my articles]


GeneralRe: get wide character and multibyte character value Pin
George_George24-Jan-08 14:19
George_George24-Jan-08 14:19 
GeneralRe: get wide character and multibyte character value Pin
CPallini24-Jan-08 21:03
mveCPallini24-Jan-08 21:03 
GeneralRe: get wide character and multibyte character value Pin
George_George24-Jan-08 21:23
George_George24-Jan-08 21:23 
GeneralRe: get wide character and multibyte character value Pin
CPallini24-Jan-08 21:27
mveCPallini24-Jan-08 21:27 
GeneralRe: get wide character and multibyte character value Pin
George_George24-Jan-08 21:47
George_George24-Jan-08 21:47 
GeneralRe: get wide character and multibyte character value Pin
CPallini24-Jan-08 21:54
mveCPallini24-Jan-08 21:54 
GeneralRe: get wide character and multibyte character value Pin
George_George24-Jan-08 22:27
George_George24-Jan-08 22:27 
GeneralRe: get wide character and multibyte character value Pin
Nemanja Trifunovic24-Jan-08 15:46
Nemanja Trifunovic24-Jan-08 15:46 
GeneralRe: get wide character and multibyte character value Pin
George_George24-Jan-08 16:36
George_George24-Jan-08 16:36 
GeneralRe: get wide character and multibyte character value Pin
Nemanja Trifunovic25-Jan-08 3:15
Nemanja Trifunovic25-Jan-08 3:15 
GeneralRe: get wide character and multibyte character value Pin
George_George25-Jan-08 3:19
George_George25-Jan-08 3:19 
GeneralRe: get wide character and multibyte character value Pin
Nemanja Trifunovic25-Jan-08 3:26
Nemanja Trifunovic25-Jan-08 3:26 
GeneralRe: get wide character and multibyte character value Pin
George_George25-Jan-08 3:30
George_George25-Jan-08 3:30 
GeneralRe: get wide character and multibyte character value Pin
CPallini24-Jan-08 21:08
mveCPallini24-Jan-08 21:08 
GeneralRe: get wide character and multibyte character value Pin
Nemanja Trifunovic25-Jan-08 3:17
Nemanja Trifunovic25-Jan-08 3:17 
GeneralRe: get wide character and multibyte character value Pin
Nemanja Trifunovic24-Jan-08 4:29
Nemanja Trifunovic24-Jan-08 4:29 
GeneralRe: get wide character and multibyte character value Pin
George_George24-Jan-08 14:32
George_George24-Jan-08 14:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.