You can't; there are no Cyrillic characters in ASCII. The chart you've shown is for one of the many "extended ASCII" character sets; specifically, it appears to be Windows-1251 (a.k.a. CP1251). In order to get a character's codepoint in this encoding, you thus need to first encode the string as CP1251 and then take the value of the resulting byte:
# Assuming Python 3
s = "Йог".encode('cp1251')
for b in s:
print(b)
Answer from jwodder on Stack OverflowYou can't; there are no Cyrillic characters in ASCII. The chart you've shown is for one of the many "extended ASCII" character sets; specifically, it appears to be Windows-1251 (a.k.a. CP1251). In order to get a character's codepoint in this encoding, you thus need to first encode the string as CP1251 and then take the value of the resulting byte:
# Assuming Python 3
s = "Йог".encode('cp1251')
for b in s:
print(b)
Answer from jwodder on Stack OverflowYou can't; there are no Cyrillic characters in ASCII. The chart you've shown is for one of the many "extended ASCII" character sets; specifically, it appears to be Windows-1251 (a.k.a. CP1251). In order to get a character's codepoint in this encoding, you thus need to first encode the string as CP1251 and then take the value of the resulting byte:
# Assuming Python 3
s = "Йог".encode('cp1251')
for b in s:
print(b)
glagolitsa = "А,Б,В,Г,Д,Е,Ё,Ж,З,И,Й,К,Л,М,Н,О,П,Р,С,Т,У,Ф,Х,Ц,Ч,Ш,Щ,Ъ,Ы,Ь,Э,Ю,Я"
Glagolitsa = glagolitsa.split(',')
Glagolitsa
for i in range(len(Glagolitsa)):
char = Glagolitsa[i]
print(ord(char))
glagolitsa = glagolitsa.lower().split(',')
for i in range(len(glagolitsa)):
char = glagolitsa[i]
print(ord(char))
for i in range(1040, 1104):
print(chr(i))