I would like to receive "Aragón" instead of "Arag�n".
My project consist in a Backend with a method that call the earth engine API in Python (ee) to receive a list of region names of a country (in this case of Spain), using the follow code:
regionList = (ee.FeatureCollection('FAO/GAUL_SIMPLIFIED_500m/2015/level1').filter(ee.Filter.eq('ADM0_NAME','Spain')))
The problem is that I receive the following:
['Andaluc�a', 'Arag�n', 'Canarias', 'Cantabria', 'Castilla-La Mancha', 'Castilla y Le�n', 'Catalu�a/Catalunya', 'Ciudad Aut�noma de Ceuta', 'Ciudad Aut�noma de Melilla', 'Comunidad de Madrid', 'Comunidad Foral de Navarra', 'Comunitat Valenciana', 'Extremadura', 'Galicia', 'Illes Balears', 'La Rioja', 'Pa�s Vasco/Euskadi', 'Principado de Asturias', 'Regi�n de Murcia']
So, in order to solve this problem I guess 2 options:
- Is there any function in earth engine API (ee) to receive characters directly in CP-1252?
- Is there any API in Python that convert these words with � into CP-1252 characters?
Thanks in advance.
Edit, Minimal reproducible example:
import ee
ee.Initialize()
collection = (ee.FeatureCollection('FAO/GAUL_SIMPLIFIED_500m/2015/level1').filter(ee.Filter.eq('ADM0_NAME','Spain')))
regionList = ee.List(collection.aggregate_array('ADM1_NAME')).getInfo()
print()