[R] Danish characters i R2.0.1 vs R1.9.1 under winXP

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Nov 23 08:25:01 CET 2004


Try R 2.0.1 patched instead: the bug in (some versions of?) Windows XP has 
been worked around now.

On Tue, 23 Nov 2004, Hans Gardfjell wrote:

> Sorry for not reporting earlier, but the same problem exists with Swedish 
> verisons
> of Windows XP together with R 2.0.0 patched (but not with R 1.9.1) and the 
> last
> characters in our alphabet.
>
>> "ä"
> [1] "\344" 
>> "ö"
> [1] "\366" 
>> "å"
> [1] "å"
>> "Ö"
> [1] "\326" 
>> "Ä"
> [1] "\304" 
>> "Å"
> [1] "\305" 
>
> Hans Gardfjell
> Ecology and Environmental science
> Umeå University, Sweden
>
>
>> The problem is in your OS, which thinks the character \370 is not printable 
>> in your locale.
>
>> Apparently this is a WinXP problem, for it also thinks \366 is not 
>> printable in German (and other versions of Windows thinks it is).
>> (Uwe Ligges pointed that out a few hours ago.)
>
>> R 1.9.1 did not check, and so made a mess of trying to print non-printable 
>> characters, in particular nuls and control characters.
>
>> There is no simple workaround, as you do want octal representation for 
>> non-printable characters (e.g. embedded nuls).  What I have proposed is 
>> that we override Windows' view for upper (>= 0x80) characters.
>
>> It does not seem to be common: the only reports before today were for
>> Chinese, which is not expected to work.
>
>> On Mon, 22 Nov 2004, Ladelund, Steen wrote:
>
>>> / Hi all.
> />>/
> />>/ After upgrading to R2.0.1 i get
> />>/
> />>>/ "æ"
> />>/ [1] "æ"
> />>>/ "ø"
> />>/ [1] "\370"
> />>>/ "å"
> />>/ [1] "å"
> />>/
> />>/ Whereas under R1.9.1 i get
> />>/
> />>>/ "æ"
> />>/ [1] "æ"
> />>>/ "ø"
> />>/ [1] "ø"
> />>>/ "å"
> />>/ [1] "å"
> />>/
> />>/ Any hints apreciated.
> />>/
> />>/ Steen
> />>/
> />>/ Steen Ladelund, statistician
> />>/ +4543233275 stelad01.FUNNYAglostruphospDOTkbhamt.dk
> />>/ Research Center for Prevention and Health
> />>/ Glostrup University Hospital, Denmark
> />>/ www.fcfs.kbhamt.dk
> />>/
> />>/ ______________________________________________
> />>/ R-help at stat.math.ethz.ch 
> <https://stat.ethz.ch/mailman/listinfo/r-help> mailing list
> />>/ https://stat.ethz.ch/mailman/listinfo/r-help
> />>/ PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> />>/
> />/
> /
>> -- 
>> Brian D. Ripley,                  ripley at stats.ox.ac.uk 
>> <https://stat.ethz.ch/mailman/listinfo/r-help>
>> Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/ 
>> <http://www.stats.ox.ac.uk/%7Eripley/>
>> University of Oxford,             Tel:  +44 1865 272861 (self)
>> 1 South Parks Road,                     +44 1865 272866 (PA)
>> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
>
> ______________________________________________
> R-help at 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
>
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


More information about the R-help mailing list