Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Weird encoding when listing the loiname variables #19

Open
aneisse opened this issue Nov 11, 2019 · 0 comments
Open

Weird encoding when listing the loiname variables #19

aneisse opened this issue Nov 11, 2019 · 0 comments

Comments

@aneisse
Copy link
Contributor

aneisse commented Nov 11, 2019

When requesting the data on lois, the string encoding is somewhat weird:

path <- "http://terrabrasilis.dpi.inpe.br/dashboard/api/v1/redis-cli/"

list_localOfInterestByLocal(apiPath = path, 
                            appIdentifier = "prodes_cerrado", loi = 2)

Resulting in:

# A tibble: 1,389 x 2
     gid loiname                                     
   <int> <chr>                                       
 1  1603 DUMONT_SÃO PAULO                           
 2  2676 BARÃO DE GRAJAÚ_MARANHÃO                 
 3  1919 "RIBEIRO GONÇALVES_PIAUÃ\u008d"            
 4  2025 NOVA ANDRADINA_MATO GROSSO DO SUL           
 5  1827 TAGUATINGA_TOCANTINS                        
 6  1711 "Ã\u0081GUA FRIA DE GOIÃ\u0081S_GOIÃ\u0081S"
 7  1804 GOIATINS_TOCANTINS                          
 8  1739 NOVA UBIRATÃ_MATO GROSSO                   
 9  1797 DIVINÓPOLIS DO TOCANTINS_TOCANTINS         
10  1641 PALESTINA_SÃO PAULO                        
# ... with 1,379 more rows

Also, no matter which encoding is used( UTF-8 or ISO8859-1), there are still weird characters in the text.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant