Skip to content
Back to formatted view

Raw Message

Message-ID: <442bea36-2b02-d6e9-5c92-d5418678857c@yeah.net>
Date: 2020-10-20T10:38:47Z
From: Jinsong Zhao
Subject: write.csv covert Åland to <c5>land
In-Reply-To: <0a97d769-48d5-7105-1a09-eb5cf68debc1@lisse.NA>

On 2020/10/20 17:23, Dr Eberhard W Lisse wrote:
> ?file.write()
> 
> look for fileEncoding?
> 
> el
> 

There is no file.write(). I have tried fileEncoding = "utf8" and 
"latin1" in write.csv(). However, it does not have effect. The output is 
is <U+00C5>land or <c5>land.

Best,
Jinsong

> On 20/10/2020 11:13, Jinsong Zhao wrote:
>> Hi there,
>>
>> I tried to export the names of country to a csv file with write.csv(). In the resulted file, ?land was coverted to <c5>land. Is there any way could prevent this happening? Thanks!
>>
>>> abc
>> [1] "?land"
>>> write.table(abc, file = "")
>> "x"
>> "1" "<c5>land"
>>
>> Best,
>> Jinsong
>>
>> ______________________________________________
>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> 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.
>