[R] Another problem with encoding

Peter Dalgaard p.dalgaard at biostat.ku.dk
Mon Dec 31 10:45:25 CET 2007

Matthias Wendel wrote:
> Hi
>     I've imported an spss-file using read.spss. One variable has value like 'Ärzte'. I thought this is UTF-8 encoded, but it is not
> (as the results of iconv and utf8ToInt suggest). Is there any way to find out how these spss-values are encoded?
You are assuming a bit much of your readers.

What exactly are you doing? Is it a value, a value label, or perhaps a 
variable name. How do the results of read.spss look on the R side? How 
did you apply iconv and utf8ToInt? What is your locale?

I mean, we could try and guess all those details, but you are the one 
with the hard info, and the motivation...

   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907

More information about the R-help mailing list