This message came from How do you get what encoding your system uses in c / C ++?
I tried to use
nl_langinfo(CODESET)
but I got ANSI_X3.4-1968 instead of UTF-8 (this is what I get when typing: charmap). Am I using nl_langinfo () incorrectly? How to use it?
You need to call first
setlocale(LC_ALL, "");
nl_langinfo always provides information about the current language version.
Source: https://habr.com/ru/post/1719946/More articles:different results using msbuild project.sln build vs vs2008 IDE build - msbuildConverting from a local client time system to CST and vice versa - jqueryUsing late binding to get a specific instance of Excel in C # - c #Should I use Twitter API or RSS feed only? - twittersetting envirnoment variable in linux - linuxCreate Excel program code in PHP - phpHow do you get what encoding your system uses in c / C ++? - c ++Adding text to an existing first line using Sed - linuxLINQ syntax and SQL syntax - sqlСравнение LINQ to Twitter - .netAll Articles