AndyQ / NFCPassportReader

NFCPassportReader for iOS 13
MIT License
738 stars 239 forks source link

pem conversion script is broken #162

Closed psvz closed 1 year ago

psvz commented 1 year ago

Twice: first, it fails to process .ml file from ICAO - apparently it contains conflicting line. Secondly, if i rename the file to ldif:

(cns,masterLists) = readAndExtractLDIFFile( filename ) File "C:\Users\snowx\Documents\ns1\pow-voting\implementation\icao-ml-convert.py", line 63, in readAndExtractLDIFFile for line in inf: File "C:\Users\snowx\miniconda3\lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 54: character maps to <undefined>

Could it be encoding thing?

gojogo88 commented 1 year ago

+1

psvz commented 1 year ago

So, I've gone and done my own parsing: https://github.com/psvz/icao