Hi
I'm really struggeling with this one. I have received data that include Danish/Norwegian letters (æ ø a Æ Ø Å) in a string variable. Stata doesn't recognise these letters well (would be great if this is improved in a future version of Stata, i.e. recognising standard letters in European languages, similar to or equivalent to the German Umlaut).
I want to change those string values. The first attempt was obviously...
replace Skole="Boe ungdomsskole" if Skole=="Bø ungdomsskole"
Stata responds
. replace Skole="Boe ungdomsskole" if Skole=="B¿ ungdomsskole"
... and no changes are made
I'm new to Stata and love it. I have realised you are supposed not to use non-English letters in Stata, but we cannot always control the nature of the data we receive (e.g. from people using SPSS). I have done extensive searches and tried many methods (including substr) to be able to change strings in a string variable containing non-English letters. No luck, and StatTransfer did not solve the problem. It would be great if someone (at Stata?) might develop a program, easily downloadable, that solves issues with non-English characters, both when used in values in a string variable and in variable names.
But for now... I would be very thankful for any workaround that solves the problem!
Regards,
Guest
I'm really struggeling with this one. I have received data that include Danish/Norwegian letters (æ ø a Æ Ø Å) in a string variable. Stata doesn't recognise these letters well (would be great if this is improved in a future version of Stata, i.e. recognising standard letters in European languages, similar to or equivalent to the German Umlaut).
I want to change those string values. The first attempt was obviously...
replace Skole="Boe ungdomsskole" if Skole=="Bø ungdomsskole"
Stata responds
. replace Skole="Boe ungdomsskole" if Skole=="B¿ ungdomsskole"
... and no changes are made
I'm new to Stata and love it. I have realised you are supposed not to use non-English letters in Stata, but we cannot always control the nature of the data we receive (e.g. from people using SPSS). I have done extensive searches and tried many methods (including substr) to be able to change strings in a string variable containing non-English letters. No luck, and StatTransfer did not solve the problem. It would be great if someone (at Stata?) might develop a program, easily downloadable, that solves issues with non-English characters, both when used in values in a string variable and in variable names.
But for now... I would be very thankful for any workaround that solves the problem!
Regards,
Guest
Comment