信用卡验证:卡名可以包含非 ASCII 字符吗?

发布于 2024-08-17 04:23:30 字数 55 浏览 2 评论 0原文

卡名称(即持卡人姓名,而不是卡类型)可以包含非 ASCII 字符吗? 例如:“何塞·冈萨雷斯”。

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

小红帽 2024-08-24 04:23:30

使用的字符集不允许允许使用变音符号。简而言之,它只允许大写 ASCII 字符。

该限制最终来自银行卡将数据编码到磁条上的历史方式(如 ISO 7811 中定义)。数据以每字符 7 位的格式进行编码,称为 ITU-T.50

持卡人姓名最多可使用 26 个字符进行编码,每个字符的范围为十六进制 20-5F。您可以在此处查看相关表格:http://www.zytrax.com/tech/ia5。 html

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

动听の歌 2024-08-24 04:23:30

磁条甚至可以存储标点符号,例如! " * # % & ( ) ^ : ; < > = ?[ / ] _
但实际上,持卡人姓名仅使用:

  • 英文大写字母范围
  • 撇号 (') 表示“Gareth O'Hare”等姓名
  • 减号 (-) 表示“Alexandru-Cristian”等双名 点
  • (.) 表示尊称前缀,例如“MR.” ”、“夫人”、“小姐”、“女士”、“博士”、“THE”。
  • 点 (.) 代表缩写,如“Jimmy L. Morgan”、“JP Teron”

Magnetic stripe can store even punctuation symbols like ! " * # % & ( ) ^ : ; < > = ? [ / ] _
But in practice cardholders names uses only:

  • Range of English uppercase letters
  • Apostrophe (') for names like "Gareth O'Hare"
  • Minus (-) for double names like "Alexandru-Cristian"
  • Dot (.) for honorific prefixes like "MR.", "MRS.", "MISS.", "MS.", "DR.", "THE."
  • Dot (.) for initials like "Jimmy L. Morgan", "J.P. Teron"
白况 2024-08-24 04:23:30

事实上,只允许使用 ASCII 字符。但其他操纵是允许的。可以在第一行或第二行打印姓名。可以选择带点或不带点等等。

因此,你无法让客户对变音符号感到满意(比如挪威语和德语的名字)。但您可以让客户在只有一个字符的完整名字之间进行选择(例如 JOSE GONZALES 或 J. GONZALES)。它有助于让客户满意。

Indeed, only ASCII characters are allowed. But other manipulation is allowed. One can print the name on the first or the second line. One can choose with or without dots and so on.

So, you can't make the customer happy with diacrits (thinks Norwegian and German names). But you can the customer let choose between full firstname of only one character (e.g. JOSE GONZALES or J. GONZALES). It helps to make the customer happy.

凉宸 2024-08-24 04:23:30

芯片卡(又名智能卡、EMV 卡)包含并可以返回大量不同的值,包括“持卡人姓名”(标签 5F20)和“持卡人姓名扩展”(标签 9F0B)。 EMV Co. 表示这两个标签都应遵循 ISO 7813,但我已经见过一张卡(大韩航空的“NH 卡”),其中标签 5F20 包含小写字符。潘多拉魔盒已经打开!

Chip cards (aka smart Cards, EMV cards) contain and can return a plethora of different values including "Cardholder Name" (tag 5F20) and "Cardholder Name Extended" (tag 9F0B). EMV Co. says that both of these tags should follow ISO 7813 but I've already seen one card (an "NH Card" from Korea Air) in which tag 5F20 contained lowercase characters. Pandora's box has been opened!

停滞 2024-08-24 04:23:30

我过去使用的信用卡处理机构只允许持卡人姓名中使用 ASCII,但您应该咨询您的信用卡处理机构,了解他们的要求/限制。

The credit card processors I've used in the past only allowed ASCII in the cardholder name, but you should check with your credit card processor to see what their requirements/restrictions are.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文