I wrote a c++ program and when I compiled it using g++ in ansi-term, I got some strange characters displayed:

If required, the error was that i hadn't declared the variable n. How can I correct this?
Ah! Tested this...
(setq locale-coding-system 'utf-8)
(set-terminal-coding-system 'utf-8-unix)
(set-keyboard-coding-system 'utf-8)
(set-selection-coding-system 'utf-8)
(prefer-coding-system 'utf-8)
and problem solved!!!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With