[R] read.spss and umlaut

From: Thomas Kuster <r_at_fam-kuster.ch>
Date: Wed 02 Aug 2006 - 23:31:56 EST


Hello

When I read a SPSS *.por file with read.spss everything after a umlaut is missing:

> library("foreign")
> spssdaten <- read.spss("projets.por")
> attr(spssdaten$PROJETX, "value.labels")[1:20]

              Bg Stammzellenforschung                                  Bb
                                  863                                   862
Bb Neugestaltung des Finanzausgleichs
                                  861                                   854
                     EV Postdienste f                                   Bb
                                  853                                   852
                                  Bb                         Bg Steuerpaket
                                  851                                   843
     Bb Anhebung der Mehrwertsteuer s                      11. AHV-Revision
                                  842                                   841
Volkinitiative Lebenslange Verwahrung
                                  833                                   832
              Gegenentwurf zur Avanti             EV Lehrstellen-Initiative
                                  831                                   824
                   EV Moratorium Plus                    EV Strom ohne Atom
                                  823                                   822
               EV Ja zu fairen Mieten                   EV Gleiche Rechte f
                                  821                                   815
             EV Gesundheitsinitiative                EV Sonntags-Initiative
                                  814                                   813

The SPSS-File is okay:
> system("cat projets.por |grep Postdienste")
echtserwerb 3. GenerationSD/N/EV Postdienste für alleSE/16/Änderrung Bg EOG Mut

How can I read the SPSS-File with the Umlaut?

Bye
Thomas Kuster

R: 2.1.0 (2005-04-18)
OS: Debian Linux, 2.6.10-isgee-neptun-1



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed Aug 02 23:48:39 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 03 Aug 2006 - 02:18:05 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.