Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problems with Unicode Stata 14

    Currently, I'm using Stata 14. I bought a computer here in South Korea, I changed the display system and the system local for non-unicode programs. I made a do file back in 2014 that all the coding was in Spanish and instead of getting a clean do file, I get the do file like the image bellow.

    I need the do file without the black boxes because when I run it I get error because it doesn't recognize the variable name.

    Click image for larger version

Name:	JKkMW.png
Views:	1
Size:	33.0 KB
ID:	1342880

  • #2
    Maximiliano:
    I'm experiencing the same probem in Stata 14.1 with old -.dta- files where all the variables with accent or apostrophe are replaced by a question mark:
    Code:
    Un p�
    instead of
    Code:
    Un po'///meaning "a bit" in Italian
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment


    • #3
      Please read -help unicode translate- carefully and follow the instructions to translate your files.

      Comment


      • #4
        Thanks, Hua.
        Kind regards,
        Carlo
        (Stata 19.0)

        Comment


        • #5
          Originally posted by Carlo Lazzaro View Post
          Maximiliano:
          I'm experiencing the same probem in Stata 14.1 with old -.dta- files where all the variables with accent or apostrophe are replaced by a question mark:
          Code:
          Un p�
          instead of
          Code:
          Un po'///meaning "a bit" in Italian

          Originally posted by Hua Peng (StataCorp) View Post
          Please read -help unicode translate- carefully and follow the instructions to translate your files.


          The unicode command works amazingly. I used the following;

          Code:
          unicode analyze 'name of the file'
          To analyze the type of the file

          Code:
          unicode encoding set latin1
          I set the enconding to latin1 because I'm using latin characters

          And finally

          Code:
          unicode translate 'name of the file'
          To translate the file, and now it has the perfect clean do file as I wanted.


          Best Regards,

          Comment


          • #6
            Thanks, Maximiliano.
            Kind regards,
            Carlo
            (Stata 19.0)

            Comment

            Working...
            X