Answer the question
In order to leave comments, you need to log in
How to Display Cyrillic in C console if setlocale doesn't work?
How to output Cyrillic to the console, in C? setlocale() doesn't work.
The code:
#include <stdio.h>
#include <locale.h>
int main(int argc, char** argv) {
setlocale (LC_ALL, "ru");
printf ("допустим - хелло, ворлд!");
return 0;
}
╨┤╨╛╨┐╤Г╤Б╤В╨╕╨╝ - ╤Е╨╡╨╗╨╗╨╛, ╨▓╨╛╤А╨╗╨┤!
. Answer the question
In order to leave comments, you need to log in
Either save the source code in the encoding used by the console (probably cp866), or switch the console encoding to the one in which the source code is saved. To edit the source code, use an editor that supports various encodings.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question