C
C
CodeInside2015-09-20 18:01:14
C++ / C#
CodeInside, 2015-09-20 18:01:14

Why are question marks displayed instead of Cyrillic characters?

#include <iostream>
#include <locale.h>
using namespace std;

void main()
{
  setlocale( LC_ALL,"Russian" );
  cout << "Тестовый текст\n";
  system("pause");
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel K, 2015-09-20
@PavelK

setlocale(lC_ALL, "en-us.UTF-8");
Of course, it must be present in the system.

A
Alexander Taratin, 2015-09-20
@Taraflex

www.nntp.perl.org/group/perl.unicode/2012/01/msg33...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question