Skip to content

Commit

Permalink
ICU-22877 revised "Region code" (formerly "Country code") section
Browse files Browse the repository at this point in the history
  • Loading branch information
cjchapman committed Sep 5, 2024
1 parent 4ef5832 commit 46712bf
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions docs/userguide/locale/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,20 @@ The optional four-letter script code follows the language code. If specified, it
should be a valid script code as listed on the
[Unicode ISO 15924 Registry](https://www.unicode.org/iso15924/iso15924-codes.html).

### Country code
### Region code

There are often different language conventions within the same language. For
example, Spanish is spoken in many countries in Central and South America but
the currencies are different in each country. To allow for these differences
among specific geographical, political, or cultural regions, locales are
specified by two-letter, uppercase codes. For example, "ES" represents Spain and
"MX" represents Mexico. The two letter country code uses the
[ISO-3166](https://www.iso.org/iso-3166-country-codes.html) standard.

Java supports two letter country codes that uses ISO-3166 and UN M.49 code.
among specific geographical, political, or cultural regions, locales follow
the [BCP 47](https://www.rfc-editor.org/info/bcp47) convention of specifying
regions by using two-letter-uppercase
[ISO-3166](https://www.iso.org/iso-3166-country-codes.html) or three-digit
[UN M.49](https://unstats.un.org/unsd/methodology/m49/) codes. For example,
"ES" represents Spain, "MX" represents Mexico, and "419" represents Latin America
and the Caribbean. For more information, please see the
[unicode_region_subtag](https://www.unicode.org/reports/tr35/#unicode_region_subtag_validity)
section of the [Locale Data Markup Language](https://www.unicode.org/reports/tr35/).

### Variant code

Expand Down

0 comments on commit 46712bf

Please sign in to comment.