I've been using a plain text file copied from fbref.com (select "Share and Export -> table as csv") to analyze scores of Major League Soccer all season. I simply use the code
where the data is stored as "results.txt". Today when I updated the text file, Stata 18 interpreted the dashes in the scores as â. When I used the command chartab, I see that the dashes are being interpreted as
decimal = 226
hexidecimal = \u00e2
character = â
unique name = LATIN SMALL LETTER A WITH CIRCUMFLEX
Any ideas why this is suddenly happening and how to fix it? I've been doing this process without problems for months and have not recently updated Stata so I'm at a loss as to why things are different now.
Code:
import delimited "~/results.txt", clear
decimal = 226
hexidecimal = \u00e2
character = â
unique name = LATIN SMALL LETTER A WITH CIRCUMFLEX
Any ideas why this is suddenly happening and how to fix it? I've been doing this process without problems for months and have not recently updated Stata so I'm at a loss as to why things are different now.
Comment