I am importing a large text file into Stata using the following code:
Code:
import delimited "file.txt", delimiter("|") clear
Note: 19,649,776 binary zeros were ignored in the source file. The first instance occurred on line 1. Binary zeros are not valid in text data. Inspect your data carefully.
Following the advice in a previous post(https://www.statalist.org/forums/for...-into-stata-14), I tried to specify the encoding using the following code (my file is encoded as 1252 (ANSI Latin I)):
Code:
import delimited "file.txt", delimiter("|") encoding(ISO-8859-1) clear
Best,
Kelly
Leave a comment: