Problem with unicode / accent in PyScripter console

15 views
Skip to first unread message

Karlsson

unread,
Sep 23, 2022, 2:29:39 AM9/23/22
to PyScripter
Hello,
i have update from PyScripter 3.6.1 to 4.1.1.1.0 on Windows 10 64bit.

It worked fine with PyScripter-3.6.1 and on Windows CommandLine fine.
i use Python 3.6.3 x64.


When i run the example script in PyScripter it was fails.
----

Example A - worked fine
def main():
    print("é")

if __name__ == '__main__':
    main()

OUTPUT:
*** Remote Interpreter Reinitialized ***
A
>>>

----

Example B - fails
def main():
    print("é")

if __name__ == '__main__':
    main()

OUTPUT:
*** Remote Interpreter Reinitialized ***

and a PopUP Error
External server is not connected.
Please reinitialize or disconnect external interpreter.

----

 Example C - fails
def main():
    print("\u0119")

if __name__ == '__main__':
    main()

OUTPUT:
*** Remote Interpreter Reinitialized ***
Traceback (most recent call last):
  File "<Modul1>", line 17, in <module>
  File "<Modul1>", line 13, in main
  File "C:\Python36\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u0119' in position 0: character maps to <undefined>
>>> 

And seconed TAB load file "cp1252.py" 
----

Example C on CMD worked fine
I:\Test>python "Test unicode.py"
ę

I:\Test>
----

is this a wrong configuration or a bug in PyScripter 4.x?
Please help me.

Karlsson

Karlsson

unread,
Sep 27, 2022, 7:36:38 AM9/27/22
to PyScripter
No Answer, no Help.

Please fix the bug in PyScripter 4.x?

best regards 
Karlsson
Reply all
Reply to author
Forward
0 new messages