Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
How to get Visual Studio to print Unicode characters?
Post Flair (click to view more posts with a particular flair)
Post Body

So I have a decent amount of experience with coding but I am almost completely brand new to C . I'm working on an assignment that has to do with a deck of cards, and I cannot for the life of me get the console to print the Unicode card suit symbols (♥♦♣♠). If I put them straight into the code, they get turned into question marks. If I try printing the unicode directly like cout << '\u0444'; they just print question marks. If I try using the _setmode code like _setmode(_fileno(stdout), _O_U16TEXT); it just makes my code break with some kind of Debug Assertion error regarding buffer size (I'd include an image but it won't let me). I've researched countless solutions and trudged through ancient forum posts but no one seems to have a definitive answer to this. Any help or just suggestions pushing me in the right direction would be greatly appreciated.

Author
Account Strength
100%
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
9,899
Link Karma
5,373
Comment Karma
4,452
Profile updated: 1 day ago
Posts updated: 5 days ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
9 months ago