Chinese garbled characters appear in Stata import dta file

BUG scene:

Import the dta file to Stata, but there are garbled Chinese characters (the network screenshot is as follows)
Insert picture description here


Problem Description:

Searching on the Internet, the most common way is this,
so I searched the
Insert picture description here
map, first cleared it, then went to the corresponding path, and then entered unicode ananlyse *, but found that it was not possible.

Insert picture description here


Cause Analysis:

Then you have to watch the red English in peace and calmly.“There must be no data in memory”, And then I knew that I opened the dta file first (by clicking the dta file to jump out of the Stata software), so I should open the Stata software first, and then import the data set. In fact, what does it mean, is to set the general language environment first, and then import the file (humble opinion)


solution:

I'm too lazy to type the code. I will give you a big screenshot. The Chinese in the label of the variable window was a brick red garbled symbol.
Insert picture description here
Insert picture description here
So once you encounter a bug, first look for csdn, and second, look at the error message.

Guess you like

Origin blog.csdn.net/weixin_45734379/article/details/109277487