Re: [R] Writing Unicode Text into Text File from R (in Windows)

2014-02-18 Thread Majid Einian
On Tue, Feb 4, 2014 at 4:18 PM, Duncan Murdoch wrote: > > On 14-02-04 5:49 AM, Majid Einian wrote: >> >> Dear R Helpers, >> >> See the Code: >> >> a <- intToUtf8(1777) >> show(a) >> zz <- file(description="test.txt",open="w",encoding="UTF-8") >> cat(a, file = zz) >> close(zz) >> >> in a Unicode aw

Re: [R] Writing Unicode Text into Text File from R (in Windows)

2014-02-04 Thread Duncan Murdoch
On 14-02-04 5:49 AM, Majid Einian wrote: Dear R Helpers, See the Code: a <- intToUtf8(1777) show(a) zz <- file(description="test.txt",open="w",encoding="UTF-8") cat(a, file = zz) close(zz) in a Unicode aware environment (such as RGui console or RStudio Console) you will see this as output: [1

[R] Writing Unicode Text into Text File from R (in Windows)

2014-02-04 Thread Majid Einian
Dear R Helpers, See the Code: a <- intToUtf8(1777) show(a) zz <- file(description="test.txt",open="w",encoding="UTF-8") cat(a, file = zz) close(zz) in a Unicode aware environment (such as RGui console or RStudio Console) you will see this as output: [1] "Û±" but the character is not written c