If I read the Javadocs for Locale, I see that there is a permanent UK for the United Kingdom (I think: P)
But if I read the class documentation, it says:
The country argument is the current ISO Country Code standard. These codes are uppercase, two-letter codes as defined by ISO-3166. You can find a complete list of these codes on the site number, such as: http://www.iso.ch/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html
But in ISO 3166, two code characters for the United Kingdom are GB
So why is countryId for Locale in UK - UK? What iso is used for countryId Locale object?
This is really ISO 3166. Constant java.util.Locale.UKmatters "en_GB". Therefore, despite the fact that it is called the United Kingdom, it has the correct meaning.
java.util.Locale.UK
"en_GB"
java.util.Locale.UK , . ISO, Locale , , "GB" , ISO 3166. , ISO "UK" (. Wikipedia ). locale "UK", "GB" , , , , , "", "GB" , , , ISO.
Source: https://habr.com/ru/post/1779747/More articles:Typedef redefinition (C2371) for uint32 in two third-party libraries - c ++C # facebook graph / How to upload image to Facebook album? - c #SWT: how to create a regular button from an action - javaGeneric reflective helper method for equals and hashCode - javaHow to handle both buttons (left and right simultaneously) with JS / jQuery? - javascriptBest way for unique random string for MySQL Long table - databaseA model linking two or more collections - asp.net-mvcHow to handle ASP.NET MVC global string constants - .netYoda Equivalent to Date data structure - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1779752/net-development-code-structure-controllers-services-repositories-contexts&usg=ALkJrhhSpRfxwfqUdZ562fyr2vJruUj91QAll Articles