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

2017-04-30 Thread Jack Kelley
: embedded nul in string: '\n\0' Error in iconv("\n", to = "UTF-16BE") : embedded nul in string: '\0\n' Error in iconv("\n", to = "UTF-16") : embedded nul in string: 'þÿ\0\n' Error in iconv("\n", to = "UTF-32LE") : embedded nul in string: '\n\0\0\0' Error in iconv("\n", to = "UTF-32BE") : embedded nul in string: '\0\0\0\n' Error in iconv("\n", to = "UTF-32") : embedded nul in string: '\0\0þÿ\0\0\0\n' > Cheers -- Jack Kelley __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

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

2017-05-01 Thread Jack Kelley
0 00 34 00 00 00 0d 0a (Nevertheless, Microsoft Excel 2013 tolerates these CSVs!) One trick/solution is to use eol = "\r" (that is, only). Regards -- Jack Kelley remove (list = objects()) pr

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