Home > Back-end >  For help! About using CMD execute the make command garbled words details are as follows
For help! About using CMD execute the make command garbled words details are as follows

Time:09-21

In the open the CMD window, a character encoding is 65001 (utf-8) coding

The execution of the make command to compile c + + files after will become 1252 (I) ANSI - Latin coding

Produce character set the code
Does anyone know the solution of the problem that excuse me?

CodePudding user response:

Does anyone know? Don't sink!

CodePudding user response:

Try parameters - finput - charset

CodePudding user response:

refer to the second floor zjq9931 response:
try parameters - finput - charset

This wrote in the make file to run, the default don't write code is utf-8 encoding, but every time I enter the make execution code is changed

CodePudding user response:

reference 3 floor of dye dust reply:
Quote: refer to the second floor zjq9931 response:
try parameters - finput - charset

This wrote in the make file to run, the default don't write code is utf-8 encoding, but every time I enter the make executing code is changed

GCC? As if you need to use minGW running environment, is in CMD running directly? This I am not very well, if I say wrong, such as superior to solve it,

CodePudding user response:

reference 4 floor zjq9931 response:
Quote: reference 3 floor of dye dust reply:

Quote: refer to the second floor zjq9931 response:
try parameters - finput - charset

This wrote in the make file to run, the default don't write code is utf-8 encoding, but every time I enter the make executing code is changed

GCC? As if you need to use minGW running environment, is in CMD running directly? This I am not very well, if I say wrong, superior to solve, such as
is directly inside the CMD running thank you ah

CodePudding user response:

Is anyone here? I haven't solve this

CodePudding user response:

You can use powershell first try

May be associated with a terminal emulator

CodePudding user response:

refer to the sixth floor of dye dust response:
someone? I haven't solve this


Personally, I think, since after setting the encoding, once run make will change, so the change is likely to be the make, make itself does not support utf-8 possibility is very large,

CodePudding user response:

What is the makefile file code? If not utf8 encoding, try to utf8 encoding
If not yet
The beginning of the makefile additional
SHELL CMD=
Then add modify where needed, console command coding try
CHCP 65001

CodePudding user response:

refer to the eighth floor zjq9931 response:
Quote: refer to the sixth floor of dye dust response:

Is anyone here? I haven't solve this


Personally, I think, since after setting the encoding, once run make will change, so the change is likely to be the make, make itself does not support utf-8 possibility is very large,
in a computer, the original computer can be run, this is not

CodePudding user response:

references 9 f qybao response:
makefile what code? If not utf8 encoding, try to utf8 encoding
If not yet
The beginning of the makefile additional
SHELL CMD=
Then add modify where needed, console command coding try
CHCP 65001
is utf-8 encoding

CodePudding user response:

Haven't solve, some people still know the way?
  • Related