[shared] Converted files with country codes to UTF-8.

This commit is contained in:
Gaetan Delannay 2012-12-14 14:50:23 +01:00
parent 0dae8b1888
commit 1e3a8ba351
2 changed files with 10 additions and 8 deletions

View file

@ -1,5 +1,5 @@
AFGHANISTAN;AF AFGHANISTAN;AF
ÅLAND ISLANDS;AX ÅLAND ISLANDS;AX
ALBANIA;AL ALBANIA;AL
ALGERIA;DZ ALGERIA;DZ
AMERICAN SAMOA;AS AMERICAN SAMOA;AS
@ -25,7 +25,7 @@ BENIN;BJ
BERMUDA;BM BERMUDA;BM
BHUTAN;BT BHUTAN;BT
BOLIVIA, PLURINATIONAL STATE OF;BO BOLIVIA, PLURINATIONAL STATE OF;BO
BONAIRE, SAINT EUSTATIUS AND SABA;BQ BONAIRE, SINT EUSTATIUS AND SABA;BQ
BOSNIA AND HERZEGOVINA;BA BOSNIA AND HERZEGOVINA;BA
BOTSWANA;BW BOTSWANA;BW
BOUVET ISLAND;BV BOUVET ISLAND;BV
@ -52,10 +52,10 @@ CONGO;CG
CONGO, THE DEMOCRATIC REPUBLIC OF THE;CD CONGO, THE DEMOCRATIC REPUBLIC OF THE;CD
COOK ISLANDS;CK COOK ISLANDS;CK
COSTA RICA;CR COSTA RICA;CR
CÔTE D'IVOIRE;CI CÔTE D'IVOIRE;CI
CROATIA;HR CROATIA;HR
CUBA;CU CUBA;CU
CURAÇAO;CW CURAÇAO;CW
CYPRUS;CY CYPRUS;CY
CZECH REPUBLIC;CZ CZECH REPUBLIC;CZ
DENMARK;DK DENMARK;DK
@ -124,7 +124,7 @@ LATVIA;LV
LEBANON;LB LEBANON;LB
LESOTHO;LS LESOTHO;LS
LIBERIA;LR LIBERIA;LR
LIBYAN ARAB JAMAHIRIYA;LY LIBYA;LY
LIECHTENSTEIN;LI LIECHTENSTEIN;LI
LITHUANIA;LT LITHUANIA;LT
LUXEMBOURG;LU LUXEMBOURG;LU
@ -178,11 +178,11 @@ POLAND;PL
PORTUGAL;PT PORTUGAL;PT
PUERTO RICO;PR PUERTO RICO;PR
QATAR;QA QATAR;QA
RÉUNION;RE RÉUNION;RE
ROMANIA;RO ROMANIA;RO
RUSSIAN FEDERATION;RU RUSSIAN FEDERATION;RU
RWANDA;RW RWANDA;RW
SAINT BARTHÉLEMY;BL SAINT BARTHÉLEMY;BL
SAINT HELENA, ASCENSION AND TRISTAN DA CUNHA;SH SAINT HELENA, ASCENSION AND TRISTAN DA CUNHA;SH
SAINT KITTS AND NEVIS;KN SAINT KITTS AND NEVIS;KN
SAINT LUCIA;LC SAINT LUCIA;LC
@ -205,6 +205,7 @@ SOLOMON ISLANDS;SB
SOMALIA;SO SOMALIA;SO
SOUTH AFRICA;ZA SOUTH AFRICA;ZA
SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS;GS SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS;GS
SOUTH SUDAN;SS
SPAIN;ES SPAIN;ES
SRI LANKA;LK SRI LANKA;LK
SUDAN;SD SUDAN;SD
@ -246,4 +247,3 @@ WESTERN SAHARA;EH
YEMEN;YE YEMEN;YE
ZAMBIA;ZM ZAMBIA;ZM
ZIMBABWE;ZW ZIMBABWE;ZW

View file

@ -230,6 +230,8 @@ class Countries:
(first line has been removed).''' (first line has been removed).'''
def __init__(self): def __init__(self):
# This file has been downloaded from
# http://www.iso.org/iso/country_codes.htm and converted to utf-8.
self.fileName = os.path.dirname(__file__) + '/CountryCodesIso3166.1.txt' self.fileName = os.path.dirname(__file__) + '/CountryCodesIso3166.1.txt'
self.countryCodes = [] self.countryCodes = []
# Names of countries in English # Names of countries in English