Announcement

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

  • Insheeting special characters like é or ü ?

    Dear all,
    when I -insheet- data from a .txt file, the special characters -é-, -è-, -ü-, -ä- and -ö- are all replaced with the same big square. This is suboptimal: I cannot correct this mistake afterward by replacing the big square for after insheeting I my code cannot recognize anymore which of these special characters was there before the big square. One solution is to somehow replace each special character with something more readable for Stata within the txt file, but is there also any option for -insheet- to do it from within Stata?
    Thanks so much, PM

  • #2
    Probably those special characters are encoded in extended ASCII, while Stata encodes special characters in UTF-8. You use help unicode_translate to bring that file into the correct encoding.
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment


    • #3
      Great, that's working, thanks a lot Maarten!

      Comment

      Working...
      X