Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: Scandinavian letters in Stata


From   roland andersson <rolandersson@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Scandinavian letters in Stata
Date   Tue, 23 Feb 2010 18:27:18 +0100

Thank you Eric an Martin

I still need some help. One example of a list looks like this:

Norrköping	for Norrköping
Nässjö	    for Nässjö
Söderköping	 for Söderköping

Should I write

replace var1 = subinstr(var1, "ö", "`=char(246)'", .)
replace var1 = subinstr(var1, "ä", "`=char(
Correct?



2010/2/23 Martin Weiss <martin.weiss1@gmx.de>:
>
> <>
>
>
>
> *************
> ssc d asciiplot
> *************
>
> by Nick and coauthor makes the issue even clearer...
>
>
>
> HTH
> Martin
>
>
> -----Ursprüngliche Nachricht-----
> Von: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Eric Booth
> Gesendet: Dienstag, 23. Februar 2010 16:45
> An: statalist@hsphsun2.harvard.edu
> Betreff: Re: st: Scandinavian letters in Stata
>
>>
>
>
>
> ******************
> clear
> ssc install ascii
> **
> inp str10 var1
> "Aasdf"
> "oghjkl"
> "qwerty"
> "zxcvnm"
> "yuiop"
> end
> **
> ascii
> li
> replace var1 = subinstr(var1, "a", "`=char(138)'", .)
> replace var1 = subinstr(var1, "o", "`=char(154)'", .)
> replace var1 = subinstr(var1, "A", "`=char(128)'", .)
> li
> ******************
>
> ~ Eric
> __
> Eric A. Booth
> Public Policy Research Institute
> Texas A&M University
> ebooth@ppri.tamu.edu
> Office: +979.845.6754
>
> On Feb 23, 2010, at 9:34 AM, roland andersson wrote:
>
>> Is there a way to keep the scandinavian letters in Stata? The largest
>> problem is when I make lists of patients names and adresses. Å, ä and
>> ö are replaced with other letters and I do not know how to transform
>> them back to the scandinavian alphabet.
>>
>> Roland Andersson
>>
>> *
>> *   For searches and help try:
>> *   http://www.stata.com/help.cgi?search
>> *   http://www.stata.com/support/statalist/faq
>> *   http://www.ats.ucla.edu/stat/stata/
>
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index