search for: xfef

Displaying 8 results from an estimated 8 matches for "xfef".

Did you mean: xfe
2016 Feb 16
2
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
...e resulting CSV file has a size of 6 bytes which is too short (truncated): """,3 The problem seems to be the iconv function: iconv("foo", to="UTF-16") produces Error in iconv("foo", to = "UTF-16"): embedded nul in string: '\xff\xfef\0o\0o\0' In 2010 a (partial) patch for this problem was submitted: http://tolstoy.newcastle.edu.au/R/e10/devel/10/06/0648.html Are there chances to fix this problem since it prevents writing Windows UTF-16LE text files? PS: This problem can be reproduced on Windows and Linux. -----------...
2010 Jun 30
2
Reading in a transcript-like file
...s: test<-scan(file="FT20100626 $20 + $2 Sit & Go - (169112900) - Summary.txt", what=list(""), flush=FALSE, skip=0, encoding="UTF-16", quote="\n") which gives me a list wherein each element is first letter of the row. > test [[1]] [1] "\xff\xfeF" "T" "P" "T" "S" "$" "+" "$" "S" [10] "&" "G" "(" "H" "N"...
2016 Feb 23
4
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
...>> The problem seems to be the iconv function: >> >> iconv("foo", to="UTF-16") >> >> produces >> >> Error in iconv("foo", to = "UTF-16"): >> embedded nul in string: '\xff\xfef\0o\0o\0' but this works > iconv("foo", to="UTF-16", toRaw=TRUE) [[1]] [1] ff fe 66 00 6f 00 6f 00 (indeed showing the embedded '\0's) >> In 2010 a (partial) patch for this problem was submitted: >> http://tolstoy.newcastle.edu.a...
2016 Feb 23
1
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
...>> > > >> iconv("foo", to="UTF-16") > > >> > > >> produces > > >> > > >> Error in iconv("foo", to = "UTF-16"): > > >> embedded nul in string: '\xff\xfef\0o\0o\0' > > > > but this works > > > > > iconv("foo", to="UTF-16", toRaw=TRUE) > > [[1]] > > [1] ff fe 66 00 6f 00 6f 00 > > > > (indeed showing the embedded '\0's) > > > > >> I...
2010 Jun 19
1
more powerful iconv
R community, As you may know, R's iconv doesn't work well converting to and from encodings that allow embedded nulls. For example > iconv("foo", to="UTF-16") Error in iconv("foo", to = "UTF-16") : embedded nul in string: '\xff\xfef\0o\0o\0' However, I don't believe embedded nulls are at issue here, but rather that R's iconv doesn't accept objects of type RAWSXP. The iconv mechanism, after all, operates on encoded binary data, and not necessarily null terminated C strings. I'd like to submit a very small p...
2016 Feb 22
0
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
...t > (truncated): > > """,3 > > The problem seems to be the iconv function: > > iconv("foo", to="UTF-16") > > produces > > Error in iconv("foo", to = "UTF-16"): > embedded nul in string: '\xff\xfef\0o\0o\0' > > In 2010 a (partial) patch for this problem was submitted: > > http://tolstoy.newcastle.edu.au/R/e10/devel/10/06/0648.html > > Are there chances to fix this problem since it prevents writing Windows > UTF-16LE text files? > > > > PS: This probl...
2016 Feb 23
0
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
...be the iconv function: > >> > >> iconv("foo", to="UTF-16") > >> > >> produces > >> > >> Error in iconv("foo", to = "UTF-16"): > >> embedded nul in string: '\xff\xfef\0o\0o\0' > > but this works > > > iconv("foo", to="UTF-16", toRaw=TRUE) > [[1]] > [1] ff fe 66 00 6f 00 6f 00 > > (indeed showing the embedded '\0's) > > >> In 2010 a (partial) patch for this problem was subm...
2016 Feb 24
2
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
...>> >> >> iconv("foo", to="UTF-16") >> >> >> >> produces >> >> >> >> Error in iconv("foo", to = "UTF-16"): >> >> embedded nul in string: '\xff\xfef\0o\0o\0' >> >> but this works >> >> > iconv("foo", to="UTF-16", toRaw=TRUE) >> [[1]] >> [1] ff fe 66 00 6f 00 6f 00 >> >> (indeed showing the embedded '\0's) >> >> >> In 2010 a (...