信用卡验证:卡名可以包含非 ASCII 字符吗? [英] Credit Card validation: can Card Name contain non-ASCII characters?
问题描述
卡名(即持卡人姓名,而不是卡类型)可以包含非 ASCII 字符吗?示例:何塞·冈萨雷斯".
Can the Card Name (i.e. the cardholder name, not the card type) contain non-ASCII characters? Example: "JOSÉ GONZÁLEZ".
推荐答案
使用的字符集不允许使用变音符号.简而言之,它只允许大写 ASCII 字符.
The character set that is used does not allow for diacritics. In brief, it only allows uppercase ASCII characters.
限制最终来自银行卡将数据编码到磁条上的历史方式(在 ISO 7811 中定义).数据以每个字符 7 位的格式编码,称为 ITU-T.50
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
持卡人姓名最多由 26 个字符编码,每个字符的范围为十六进制 20-5F.您可以在此处查看相关表格:http://www.zytrax.com/tech/ia5.html
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
这篇关于信用卡验证:卡名可以包含非 ASCII 字符吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!