Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Re: Problem with variable names using Insheet

From   Sergiy Radyakin <>
To   "" <>
Subject   Re: st: Re: Problem with variable names using Insheet
Date   Tue, 14 May 2013 01:46:29 -0400

Joseph Deckert reported difficulties importing data to Stata from a
CSV file. Reported symptoms included presence of abnormal characters
+ACI- around the imported content (variable names). A number of
recommendations were given on how to batch-rename the variables in the
imported file.

The reason of the problem however was not established. Joseph will
find in the following table:
that the characters he observes correspond to the unicode
double-quotes symbol (") under some encoding.
Other commonly encountered sequences are:
+AD4- >
+Adw <
+AC0- -
+ACo- *
+AD0- =
+ADs ;
APA- <
+AF4- ^

Furthermore, some versions of OpenOffice were reported to have a
problem related to embedding these characters:
however it is not immediately clear whether the problem is in the
software or the user settings and data transformations.

Renaming the variables may not eliminate the problem, since the
content of the cells is also subject to the same encoding problem.

It was not established until now whether Microsoft's Excel can produce
such a problematic file. Excel 2010 does not give me the freedom to
specify the code page of the CSV file (at least with the default file

I would be curious to know which particular version of software
produced such corrupt file that Stata couldn't import and which
options (if any) were specified. My rather weak suspicion is that the
file was downloaded with a browser, while incorrect character encoding
was selected. See related explanations here:

If Joseph has access to the original file that didn't have a problem
and from which the CSV file was obtained, he may want to import it to
Stata using some other format (eg XLS in Stata 12.0 or newer).

Best, Sergiy Radyakin

On Mon, May 13, 2013 at 9:34 PM, Joseph Coveney <> wrote:
> Nick Cox wrote:
>  . . . For the record, -renpfix- is, and always was, an official command.
> --------------------------------------------------------------------------------
> Thanks for setting me straight on that, Nick.  I stand corrected.
> It's curious that StataCorp provided only one of a pair of bookends, though.
> Joseph Coveney
> *
> *   For searches and help try:
> *
> *
> *
*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index