Click here to Skip to main content
15,905,563 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Very Basic socket programming, Winsock! Newb help.. Pin
Mark Salsbery14-Sep-07 6:04
Mark Salsbery14-Sep-07 6:04 
GeneralRe: Very Basic socket programming, Winsock! Newb help.. Pin
Beaon14-Sep-07 6:20
Beaon14-Sep-07 6:20 
GeneralRe: Very Basic socket programming, Winsock! Newb help.. Pin
Beaon14-Sep-07 8:22
Beaon14-Sep-07 8:22 
GeneralRe: Very Basic socket programming, Winsock! Newb help.. Pin
Mark Salsbery14-Sep-07 12:39
Mark Salsbery14-Sep-07 12:39 
GeneralRe: Very Basic socket programming, Winsock! Newb help.. Pin
Beaon17-Sep-07 5:49
Beaon17-Sep-07 5:49 
AnswerRe: Very Basic socket programming, Winsock! Newb help.. Pin
Beaon17-Sep-07 9:21
Beaon17-Sep-07 9:21 
GeneralRe: Very Basic socket programming, Winsock! Newb help.. Pin
Mark Salsbery17-Sep-07 9:43
Mark Salsbery17-Sep-07 9:43 
QuestionDisplaying text in non-english language on console [modified] Pin
ComplexLifeForm12-Sep-07 7:02
ComplexLifeForm12-Sep-07 7:02 
Hi,
I am trying to display non-english text on the std console. I have tried various methods like
setconsole, _wsetconsole etc.. Defined _UNICODE and UNICODE macros also used wstring, wcout thinking that wide char variant might print the non-english text. Below is my sample program

#include <iosstream>
#include <locale>
using namespace std;

int_tmain()
{
wstring nonEnglishName = _TEXT("槧雲鼻");
wcout.imbue(locale("jpn");
wcout << _TEXT("Name in japanese is = ") << nonEnglishName.c_str() << endl;

return 0;
}

The output I am getting is = Name in japanese is = ₧▀ë_ò@

My system locate is still set to US_ENGLSH and I do not want to change it.
Can anybody please guide me regarding the correct procedure for displaying non-english text on the console?

Thanks



-- modified at 13:46 Wednesday 12th September, 2007
AnswerRe: Displaying text in non-english language on console Pin
Matthew Faithfull12-Sep-07 8:21
Matthew Faithfull12-Sep-07 8:21 
QuestionExiting process Pin
koumodaki12-Sep-07 6:16
koumodaki12-Sep-07 6:16 
AnswerRe: Exiting process Pin
Hamid_RT12-Sep-07 6:44
Hamid_RT12-Sep-07 6:44 
AnswerRe: Exiting process Pin
Mark Salsbery12-Sep-07 6:45
Mark Salsbery12-Sep-07 6:45 
AnswerRe: Exiting process Pin
aks.12-Sep-07 15:49
aks.12-Sep-07 15:49 
Questionproblem with multithreading and wrapper-class object Pin
kyer12-Sep-07 4:53
kyer12-Sep-07 4:53 
AnswerRe: problem with multithreading and wrapper-class object Pin
Randor 12-Sep-07 4:59
professional Randor 12-Sep-07 4:59 
GeneralRe: problem with multithreading and wrapper-class object Pin
kyer12-Sep-07 5:30
kyer12-Sep-07 5:30 
GeneralRe: problem with multithreading and wrapper-class object Pin
Randor 12-Sep-07 6:07
professional Randor 12-Sep-07 6:07 
GeneralRe: problem with multithreading and wrapper-class object Pin
kyer12-Sep-07 8:23
kyer12-Sep-07 8:23 
AnswerSolution Pin
kyer12-Sep-07 9:12
kyer12-Sep-07 9:12 
Questionexcel problem Pin
tunminhein12-Sep-07 4:28
tunminhein12-Sep-07 4:28 
QuestionRe: excel problem Pin
David Crow12-Sep-07 5:33
David Crow12-Sep-07 5:33 
QuestionProjectsettings for dual core cpu's? Pin
bosfan12-Sep-07 4:19
bosfan12-Sep-07 4:19 
AnswerRe: Projectsettings for dual core cpu's? Pin
Randor 12-Sep-07 4:22
professional Randor 12-Sep-07 4:22 
GeneralRe: Projectsettings for dual core cpu's? Pin
bosfan12-Sep-07 4:28
bosfan12-Sep-07 4:28 
GeneralRe: Projectsettings for dual core cpu's? Pin
carrivick12-Sep-07 21:50
carrivick12-Sep-07 21:50 

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.