If given a set of text "abcdefg-foo" that is encoded with codepage "xzc" is it possible in python to decode those characters with the codepage?
More specifically, we have a known AFP codepage T1V10500. The font we extract is being extracted from an AFP that references this codepage. We can extract the reference and build the path to the codepage.
codepage="/path/to/codepage/T1V10500"
ascii_encoded_extracted_afp_text=extract_afp_text().decode(codepage).encode("ascii")
This is an oversimplification of what I wish to achieve, but I hope to understand if the concept is available in python specifically.