The wcout output cannot display Chinese characters.

Source: Internet
Author: User

The wcout output cannot display Chinese characters. Just Add the following sentence.

STD: wcout. imbue (STD: locale ("CHS "));

 

Primary language

Sublanguage

Language string

Chinese

Chinese

"Chinese"

Chinese

Chinese (simplified)

"Chinese-simplified" or "CHS"

Chinese

Chinese (traditional)

"Chinese-traditional" or "CHT"

Czech

Czech

"CSY" or "Czech"

Danish

Danish

"Dan" or "Danish"

Dutch

Dutch (default)

"Dutch" or "NLD"

Dutch

Dutch (Belgium)

"Belgian", "Dutch-Belgian", or "NLB"

English

English (default)

"English"

English

English (Australia)

"Australian", "ENA", or "English-Aus"

English

English (Canada)

"Canadian", "ENC", or "English-can"

English

English (New Zealand)

"English-NZ" or "enz"

English

English (United Kingdom)

"Eng", "English-uk", or "UK"

English

English (United States)

"American", "American English", "American-English", "English-American", "English-us", "English-USA", "enu ", "Us", or "USA"

Finnish

Finnish

"Fin" or "Finnish"

French

French (default)

"FRA" or "French"

French

French (Belgium)

"FRB" or "French-Belgian"

French

French (Canada)

"FRC" or "French-Canadian"

French

French (Switzerland)

"French-Swiss" or "FR"

German

German (default)

"DEU" or "German"

German

German (Austria)

"Dea" or "German-Austrian"

German

German (Switzerland)

"Des", "German-Swiss", or "Swiss"

Greek

Greek

"Ell" or "Greek"

Hungarian

Hungarian

"Hun" or "Hungarian"

Icelandic

Icelandic

"Icelandic" or "isl"

Italian

Italian (default)

"Ita" or "Italian"

Italian

Italian (Switzerland)

"Italian-Swiss" or "its"

Japan

Japan

"Japan" or "JPN"

Korean

Korean

"Kor" or "Korean"

Norwegian

Norwegian (default)

"Norwegian"

Norwegian

Norwegian (bokmal)

"Nor" or "Norwegian-bokmal"

Norwegian

Norwegian (nynorsk)

"Non" or "Norwegian-nynorsk"

Polish

Polish

"PLK" or "polish"

Portuguese

Portuguese (default)

"Portuguese" or "PTG"

Portuguese

Portuguese (Brazil)

"Portuguese-policilian" or "PTB"

Russian

Russian (default)

"Rus" or "Russian"

Slovak

Slovak

"Sky" or "Slovak"

Spanish

Spanish (default)

"Esp" or "Spanish"

Spanish

Spanish (Mexico)

"ESM" or "Spanish-Mexican"

Spanish

Spanish (modern)

"ESN" or "Spanish-modern"

Swedish

Swedish

"SVE" or "Swedish"

Turkish

Turkish

"TRK" or "Turkish"

Http://www.cnblogs.com/fangyukuan/archive/2010/08/19/1804055.html

Http://fangyukuan.blog.163.com/blog/static/193336952010719114744326/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.