Python Forum
Error in PyScripter - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Error in PyScripter (/thread-1612.html)



Error in PyScripter - Pascal15 - Jan-16-2017

I started to learn Python and wrote my first program in PyScripter

# coding: utf-8
print ("Hello!")

But when I press "Run" button it shows me this error: UnicodeEncodeError: 'ascii' codec can't encode characters in postion 32-38: ordinal not in range (128). In Menu - Edit - File format I've already changed coding to UTF-8, but still doesn't work. I don't know what to do else. Please help, if you know.


RE: Error in PyScripter - micseydel - Jan-16-2017

Does it work if you try using Python in a terminal rather than the IDE? You've only posted 32 characters by the way, so it looks like either you haven't included all of your code or it's invisible characters that are causing the problem.


RE: Error in PyScripter - snippsat - Jan-16-2017

The error message make no sense with the code you posted.
I have PyScripter and it do work with the code you postet(python 2 and 3),
so there have to something else that is not shown here.


RE: Error in PyScripter - Pascal15 - Jan-16-2017

(Jan-16-2017, 06:14 PM)snippsat Wrote: The error message make no sense with the code you posted.
I have PyScripter and it do work with the code you postet(python 2 and 3),
so there have to something else that is not shown here.
What do you mean?
What can it be?
I don't understand.