question with locale [modified]
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
wchar_t wch = 26342 ; // 26342 is a chinese character wcout << wch ; // prints nothing wout.imbue( locale("chinese-simplified" ) ) ; wcout << wch ; // okay, prints '曦' cout << '曦' ; //okay, as to cout,without having to set the locale, I can freely output chinese character ? why? Second question is why setting up locale("chinese-simplified") for wcout that makes chinese character visible? Does the locale provide the font which supports the apprearance of our character? Another question that confused me long is why can font like "Times New Roman" be used to display our ideograph? It's only 374k in size,which is simply uanble to represent 7000+ pictographs
modified on Thursday, September 8, 2011 10:54 AM