Credit Card validation: can Card Name contain non-ASCII characters?

后端 未结 5 1930
[愿得一人]
[愿得一人] 2020-12-14 16:32

Can the Card Name (i.e. the cardholder name, not the card type) contain non-ASCII characters? Example: \"JOSÉ GONZÁLEZ\".

5条回答
  •  无人及你
    2020-12-14 16:35

    The character set that is used does not allow for diacritics. In brief, it only allows uppercase ASCII characters.

    The restriction ultimately comes from the historical way in which banking cards encode data onto the magnetic stripe (as defined in ISO 7811). The data is encoded in a 7 bits per character format known as ITU-T.50

    The cardholder name is encoded with up to 26 characters, each within the range from hex 20-5F. You can see the table for this here: http://www.zytrax.com/tech/ia5.html

提交回复
热议问题