Click here to Skip to main content
15,887,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WIN32 Console application colour ? Pin
James Laing28-Aug-06 3:54
James Laing28-Aug-06 3:54 
GeneralRe: WIN32 Console application colour ? Pin
James Brown28-Aug-06 4:13
James Brown28-Aug-06 4:13 
GeneralRe: WIN32 Console application colour ? Pin
James Laing28-Aug-06 9:50
James Laing28-Aug-06 9:50 
GeneralRe: WIN32 Console application colour ? Pin
James Brown28-Aug-06 10:39
James Brown28-Aug-06 10:39 
GeneralRe: WIN32 Console application colour ? Pin
James Laing28-Aug-06 11:41
James Laing28-Aug-06 11:41 
GeneralRe: WIN32 Console application colour ? Pin
Laing,James28-Aug-06 11:59
Laing,James28-Aug-06 11:59 
QuestionI hate Unicode!! Pin
Waldermort26-Aug-06 10:24
Waldermort26-Aug-06 10:24 
AnswerRe: I hate Unicode!! Pin
Michael Dunn26-Aug-06 21:27
sitebuilderMichael Dunn26-Aug-06 21:27 
Read the WideCharToMultiByte() docs closer, you'll see that there's a fall back character, which defaults to '?'. This character is inserted in the MBCS string when there is no character in the given codepage that matches the Unicode code point.
I can't tell from your post if WideCharToMultiByte() is doing the conversion right. What could be happening is the program you're using to inspect the strings is doing its own WideCharToMultiByte() and the fallback behavior is happening there, which leads to '?' in the display.


--Mike--
Visual C++ MVP Cool | :cool:
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
GeneralRe: I hate Unicode!! [modified] Pin
Waldermort26-Aug-06 22:08
Waldermort26-Aug-06 22:08 
GeneralRe: I hate Unicode!! [modified] Pin
fefe.wyx26-Aug-06 22:24
fefe.wyx26-Aug-06 22:24 
GeneralRe: I hate Unicode!! Pin
Waldermort26-Aug-06 22:48
Waldermort26-Aug-06 22:48 
GeneralRe: I hate Unicode!! Pin
fefe.wyx26-Aug-06 23:33
fefe.wyx26-Aug-06 23:33 
GeneralRe: I hate Unicode!! Pin
Waldermort27-Aug-06 0:27
Waldermort27-Aug-06 0:27 
QuestionRegistry Unicode Problem Pin
lucki_luke26-Aug-06 9:55
lucki_luke26-Aug-06 9:55 
AnswerRe: Registry Unicode Problem Pin
Mike Dimmick26-Aug-06 11:09
Mike Dimmick26-Aug-06 11:09 
Questionreading values within std::list types Pin
jon-8026-Aug-06 8:34
professionaljon-8026-Aug-06 8:34 
AnswerRe: reading values within std::list types Pin
Waldermort26-Aug-06 9:23
Waldermort26-Aug-06 9:23 
GeneralRe: reading values within std::list types Pin
jon-8026-Aug-06 10:40
professionaljon-8026-Aug-06 10:40 
GeneralRe: reading values within std::list types Pin
Waldermort26-Aug-06 10:53
Waldermort26-Aug-06 10:53 
AnswerRe: reading values within std::list types [modified] Pin
Mike Danberg27-Aug-06 17:53
Mike Danberg27-Aug-06 17:53 
QuestionOperating system info Pin
Kiran Pinjala26-Aug-06 8:29
Kiran Pinjala26-Aug-06 8:29 
AnswerRe: Operating system info Pin
Mike Dimmick26-Aug-06 9:47
Mike Dimmick26-Aug-06 9:47 
Questionconverting str::string to const char* Pin
jon-8026-Aug-06 8:03
professionaljon-8026-Aug-06 8:03 
AnswerRe: converting str::string to const char* Pin
Pierre Leclercq26-Aug-06 8:34
Pierre Leclercq26-Aug-06 8:34 
GeneralRe: converting str::string to const char* Pin
Pierre Leclercq26-Aug-06 9:29
Pierre Leclercq26-Aug-06 9:29 

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.