Dear Statalisters,
I was trying today to solve a problem I have since installing Stata 14 (I have Stata version 14.1, running on Windows 8), i.e. the one of acute and grave accents, that are usally visualized as little squares.
I've tried with "unicode encoding set UTF-8" followed by "unicode translate", and I get the following error message:
"File not translated because it contains unconvertable characters;
you might need to specify a different encoding, but more likely you need to run unicode translate with the invalid option
File #filename.dta still needs translation
File summary:
all files not translated because they contain unconvertable characters;
you might need to specify a different encoding, but more likely you need to run unicode translate with the invalid option.
I've then rerun the last command according to the suggestion ("unicode translate#filename.dta, invalid"), and what I got at the end was:
assertion is false
9
-------------------------------------------------------------------------------------------------------------------------------------
File successfully translated
File summary:
all files successfully translated
I then took a look at my dataset and saw the accented letters were translated as "%XE0".
By running "unicode translate" I am informed by Stata about both the labels and the variables containing such unconvertable characters; however, how can I move from there? How can I make them convertable?
I was trying today to solve a problem I have since installing Stata 14 (I have Stata version 14.1, running on Windows 8), i.e. the one of acute and grave accents, that are usally visualized as little squares.
I've tried with "unicode encoding set UTF-8" followed by "unicode translate", and I get the following error message:
"File not translated because it contains unconvertable characters;
you might need to specify a different encoding, but more likely you need to run unicode translate with the invalid option
File #filename.dta still needs translation
File summary:
all files not translated because they contain unconvertable characters;
you might need to specify a different encoding, but more likely you need to run unicode translate with the invalid option.
I've then rerun the last command according to the suggestion ("unicode translate#filename.dta, invalid"), and what I got at the end was:
assertion is false
9
-------------------------------------------------------------------------------------------------------------------------------------
File successfully translated
File summary:
all files successfully translated
I then took a look at my dataset and saw the accented letters were translated as "%XE0".
By running "unicode translate" I am informed by Stata about both the labels and the variables containing such unconvertable characters; however, how can I move from there? How can I make them convertable?
Comment