I think it depends on the encoding the OS uses. From the Unicode HOWTO https://docs.python.org/3/howto/unicode.html
Quote:Python supports writing source code in UTF-8 by default, but you can use almost any encoding if you declare the encoding being used. This is done by including a special comment as either the first or second line of the source file:
#!/usr/bin/env python
# -*- coding: latin-1 -*-
u = 'abcdé'
print(ord(u[-1]))