Working with other than just ASCII chars in C | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Working with other than just ASCII chars in C

Not only in USA people use C to program. So how do we efficently output other characters not available in ASCII. The following code works in Linux terminal as intended, but when I uncomment printf line, the other wprintf lines don't work. Why is that happening? even with printf above the other statements. https://code.sololearn.com/ce65sXpUjtL2/#c Ive just noticed that in SoloLearn Playground the code doesn't show the characters either when the wprintf lines output messages. So how to get around this? How can I write Hello world using other char sets to share with friends in Middle East, Asia, Russia, Greece, etc?

30th Sep 2020, 1:44 PM
Arturop
Arturop - avatar
2 Answers
+ 4
See this and try on other ide its working if u want to know how this code working your can copy link of stackoverflow and open through browser . https://code.sololearn.com/cP3jJQet294b/?ref=app
30th Sep 2020, 3:53 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
Martin Taylor Yes I tried it that way works fine. 😅 But there may be a way to use the code provided in standard library, to store and format print the variables. Well thanks to both, I cant tag the coffee guy I didnt understand his response it was more confusing.
30th Sep 2020, 11:13 PM
Arturop
Arturop - avatar