cheminfo / mrz

MIT License
71 stars 25 forks source link

X gender is not valid? #13

Closed kaydwithers closed 3 years ago

kaydwithers commented 3 years ago

I have the passport below (fake passport) with X gender. This X gender is not appearing as a valid passport.

P<GBRSTOKES<<CASSANDRE<<<<<<<<<<<<<<<<<<<<<<
2347894037GBR7901232X2301011<<<<<<<<<<<<<<06

I noticed we use < for unspecified gender. Do you know if X is also a valid gender or is the example above an error?

targos commented 3 years ago

According to the specification, X is only valid in the VIZ, not in the MRZ: https://www.icao.int/publications/Documents/9303_p6_cons_en.pdf

Page 15: image

Page 16: image

kaydwithers commented 3 years ago

Okay awesome, it looks like our fake passport had an error. Sorry about that.