Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: non-ascii character � and "unexpected end of file"


From   "Sergiy Radyakin" <[email protected]>
To   [email protected]
Subject   Re: st: non-ascii character � and "unexpected end of file"
Date   Mon, 20 Aug 2007 12:32:12 -0400

Try the following:

di "This is `=char(255)' and this is y."

Best regards, Sergiy





On 8/20/07, Eva Poen <[email protected]> wrote:
> Dear all,
>
> while recoding a questionnaire that was originally conducted in
> German, Arabic, and Russian, I hit the problem mentioned in this
> thread:
> http://www.stata.com/statalist/archive/2005-02/msg00316.html
>
> I am using Stata 9. I managed to read the data in all right (they are
> in various tab separated files), but I cannot manipulate a string
> variable containing the character �. Since "�" is part of some of the
> answers to the questionnaire, and since I need to recode these, I
> somehow have to get around it.
>
> While a do-file will stop upon seeing "�", the Stata 9 command line
> will simply ignore it. Typing  -di "This is � and this is y."- results
> in
>
> . di "This is  and this is y."
> This is  and this is y.
>
> I.e. the character � is simply swallowed.
>
> Any help is greatly appreciated.
> Kind regards,
> Eva Poen
>
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index