How can I find out the internal code representation of a WINDOWS-1252 character?

前端 未结 3 1822
温柔的废话
温柔的废话 2021-01-05 00:54

I am processing SPSS data from a questionnaire that must have originated in M$ Word. Word automatically changes hyphens into long hyphens, and gets converted into character

3条回答
  •  忘掉有多难
    2021-01-05 01:18

    If you load the SPSS sav file via read.spss form package foreign, you could easily import the data frame with correct encoding via specifying the encoding like:

    read.spss("foo.sav", reencode="CP1252")
    

提交回复
热议问题