I wrote code on windows 10 in visual stduio 2017, later transferred .cpp'шник to Ubuntu, where I ran it, but I encountered the same problem: gcc copies the code without errors, but incorrectly interprets and displays text characters, but not numbers. Which encoding needs to be converted for Ubuntu. And what encoding is used in Ubuntu?

  • 2
    utf-8, if briefly - Fat-Zer
  • one
    see for yourself: $ locale (@ Fat-Zer, the answer is wrong) - aleksandr barakin
  • @ Fat-Zer, why not 16? - Elvin
  • @Elvin because it is not windows - Croessmah
  • @aleksandrbarakin, I know, but, you know, if you meet a person with an excellent encoding, then the first reaction is a surprise, and the second is a pop-up about cryocamera and accusations of ethnic hatred;) ... and if you find fault, then the locale does not say in what encoding the terminal works ... and in order not to paint all this, the “if short” clauses are enough ... - Fat-Zer

0