0

In the help() function, characters like å, ä, ö are not showing correct. See following code and screenshot:

def my_function():
    '''
    Här är en överdriven kommentar, å, ä, ö
    '''
    print("Här är en överdriven kommentar, å, ä, ö")

help(my_function)
my_function()

Screenshot

Anyone knows why? Thanks!

Tibbelit
  • 1,215
  • 10
  • 17

1 Answers1

2

That's actually a CMD issue rather than Python. If you'd run this in an IDE like PyCharm, you'll get the expected result:

Help on function my_function in module __main__:

my_function()
    Här är en överdriven kommentar, å, ä, ö

Här är en överdriven kommentar, å, ä, ö

Process finished with exit code 0

Have a look at the following topics related to this subject:

Community
  • 1
  • 1