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/