You can use the per-command setting of the encoding that @choroba mentions in his comment (C-x RET c utf-8) which will only affect the next command, but you can also set UTF-8 to be the default encoding everywhere. Add
to your init file and restart emacs. Or for the current session, click on "Options/...
Thank you for the this post. It took me to an answer which I needed to modify.
Error I got was similar garbled (wierd) text when I opened IPYTHON with C-c C-p on my simple python file print("hello World").