Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Re: st: Problems with insheet with non-standard delimiter ø
From
daniel klein <[email protected]>
To
[email protected]
Subject
st: Re: st: Problems with insheet with non-standard delimiter ø
Date
Tue, 31 Jul 2012 15:53:56 +0200
Just found the Mata function -ascii()-. Typing
mata : ascii("<ALT +155>")
where <ALT +155> should be replaced by the actual charcater, returns
248, indeed.
Best
Daniel
--
Lucas,
I copied your example from the Statalist archives. Have a look at
Stata's -char()- function. If you know the ASCII code of the
delimiter, you may code something like
. insheet using "foobar.txt" ,delim(`= char(248)') clear
where you replace 248 with the ASCII code. Number 248 is my guess,
based on the output you get from -asciiplot- (Blasnik, Juul, Cox)
available from the SSC.
Also, you should update to Stata 11.2.
Best
Daniel
--
Dear Daniel,
thank you for the answer. I tried on my desktop: Windows 7
Professional with Stata 11.1 and on a Sever with Windows Server 2003
and Stata 10.1. Neither works.
it is funny how these letters keep changing.
In my original database and email I had the letter ø (which is printed
typing : ALT +155 (with the numbers keyboard part)
In your code bellow, at least the way I see it here, you have used
the letter shown here:
http://unicode.org/cldr/utility/character.jsp?a=0173
regards
Lucas
*
* 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/