Re: [Rd] Any progress on write.csv fileEncoding for UTF-16 and UTF-32 ?

2017-04-30 Thread Duncan Murdoch
No, I don't think anyone is working on this. There's a fairly simple workaround for the UTF-16 and UTF-32 iconv issues: don't attempt to produce character vectors, produce raw vectors instead. (The "toRaw" argument to iconv() asks for this.) Raw vectors can contain embedded nulls. Character

Re: [Rd] Any progress on write.csv fileEncoding for UTF-16 and UTF-32 ?

2017-05-01 Thread Duncan Murdoch
On 30/04/2017 12:23 PM, Duncan Murdoch wrote: No, I don't think anyone is working on this. There's a fairly simple workaround for the UTF-16 and UTF-32 iconv issues: don't attempt to produce character vectors, produce raw vectors instead. (The "toRaw" argument to iconv() asks for this.) Raw vec

Re: [Rd] Any progress on write.csv fileEncoding for UTF-16 and UTF-32 ?

2017-05-01 Thread Jack Kelley
--------------- -------- -Original Message----- From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] Sent: Tuesday, 2 May 2017 04:22 To: Jack Kelley ; r-devel@r-project.org Subject: Re: [Rd] Any progress on write.csv fileEncoding for UTF-16 and UTF-32 ? On 30/04/2017

Re: [Rd] Any progress on write.csv fileEncoding for UTF-16 and UTF-32 ?

2017-05-01 Thread Jack Kelley
Correction to my previous post: Not just the final CR+LF... Change EXAMPLE: Using UTF-32 for exaggeration (note also that 3 nul bytes are missing in the final CR+LF): to EXAMPLE: Using UTF-32 for exaggeration (note also that 3 nul bytes are missing in *each* CR+LF): -- Jack Kelley __

Re: [Rd] Any progress on write.csv fileEncoding for UTF-16 and UTF-32 ?

2017-05-02 Thread Duncan Murdoch
adBin (csv, "raw", 1000)) }), .Names = names (EOL)) }), .Names = ENCODING) print (csv) print (CSV) -------------------------------- ------------ -Original Message- From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] Sent: Tuesday, 2

Re: [Rd] Any progress on write.csv fileEncoding for UTF-16 and UTF-32 ?

2017-05-03 Thread Duncan Murdoch
df, csv, fileEncoding = encoding, row.names = FALSE, eol = EOL [EOL.name] ) list (csv = csv, raw = readBin (csv, "raw", 1000)) }), .Names = names (EOL)) }), .Names = ENCODING) print (csv) print (CSV) -------------------------------- ------------ -Original