Decoding Ebcdic
问题 I'm being passed data that is ebcdic encoded. Something like: s = u'@@@@@@@@@@@@@@@@@@@ÂÖÉâÅ@ÉÄ' Attempting to .decode('cp500') is wrong, but what's the correct approach? If I copy the string into something like Notepad++ I can convert it from EBCDIC to ascii, but I can't seem to find a viable approach in python to achieve the same. For what it's worth, the correct result is: BOISE ID (plus or minus space padding). The information is being retrieved from a file of lines of JSON objects. That