Hi Statalist,
I am importing a large text file into Stata using the following code:
The file loads successfully but Stata returns the following message:
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)):
Running this code still returns the above message regarding binary zeros. It does not appear that any data is being lost in the import; however, I would appreciate any insight on this issue, particularly whether this is something I should be concerned about and if there is a fix.
Best,
Kelly
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
Comment