I want to transfer unicode into asci characters, transfer them through a channel that only accepts asci characters and then transform them back into proper unicode.
I'm dealing with the unicode characters like ɑ in Python 3.5.
ord("ɑ") gives me 63 with is the same as what ord("?") also gives me 63. This means simply using ord() and chr() doesn't work. How do I get the right conversion?
You can convert a number to a hex string with "0x%x" %255 where 255 would be the number you want to convert to hex.
To do this with ord, you could do "0x%x" %ord("a") or whatever character you want.
You can remove the 0x part of the string if you don't need it. If you want to hex to be capitalized (A-F) use "0x%X" %ord("a")
Is there something like ord() in python that gives the unicode hex?