- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
如果我阅读 Locale 的 Javadocs,我会看到英国存在一个常量 UK(我认为 :P)
但是如果我阅读类文档,它会说:
The country argument is a valid ISO Country Code. These codes are the upper-case, two-letter codes as defined by ISO-3166. You can find a full list of these codes at a number of sites, such as: http://www.iso.ch/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html
但是,在 ISO 3166 中,两个字母代码为 United Kingdom is GB
那么,为什么英国 Locale 的 countryId 是 UK? Locale对象的countryId用什么iso?
最佳答案
确实是 ISO 3166。常量 java.util.Locale.UK
的值为 "en_GB"
。因此,尽管它被称为英国,但它具有正确的值(value)。
关于java - 什么 ISO 用于定义 Locale 中的 countryId?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4417182/
这是我的java方法,我用它来更新用户 在后端我使用 jdbc 而不是 jdbc 模板来更新用户我无法插入国家/地区 ID,因为错误显示未找到国家/地区 ID 列名称。错误显示 countyid 丢失
我试图根据所选或输入的送货地址的国家/地区是否在 . 我找到的唯一代码是 Mage::getSingleton('checkout/type_onepage')->getQuote()->getShi
如果我阅读 Locale 的 Javadocs,我会看到英国存在一个常量 UK(我认为 :P) 但是如果我阅读类文档,它会说: The country argument is a valid ISO
图像包含两种方法,我想将 id 从 Country 表传递到 Province 表 public class DataGeneraterServlet extends HttpServlet { @E
代码运行正常,但我没有收到错误: There is no ViewData item of type 'IEnumerable' that has the key 'Register.CountryI
我是一名优秀的程序员,十分优秀!