Displaying 20 results from an estimated 213 matches for "16le".
Did you mean:
16l
2024 Feb 28
2
Trouble reading a UTF-16LE file
Dear R-help,
I am having trouble reading a UTF-16LE formatted file. The issue appears to be a byte order mark at the beginning of the file. I have tried readLines(file, encoding='utf-16LE') but got me
[1]"\xff\xfe1" "" "" "" "" ""
Regards,
Tim
2016 Feb 24
2
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
...le" examples section
>>>> >>
>>>> >> x <- data.frame(a = I("a \" quote"), b = pi)
>>>> >> # (ommited code)
>>>> >> write.csv(x, file = "foo.csv", fileEncoding = "UTF-16LE")
>>>> >>
>>>> >> the resulting CSV file has a size of 6 bytes which is too short
>>>> >> (truncated):
>>>> >>
>>>> >> """,3
>>>>
>>>>...
2016 Feb 24
2
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
...e the code from the "?write.table" examples section
>> >>
>> >> x <- data.frame(a = I("a \" quote"), b = pi)
>> >> # (ommited code)
>> >> write.csv(x, file = "foo.csv", fileEncoding = "UTF-16LE")
>> >>
>> >> the resulting CSV file has a size of 6 bytes which is too short
>> >> (truncated):
>> >>
>> >> """,3
>>
>> reproducibly, yes.
>> If you look at what write.csv doe...
2016 Feb 23
4
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
...>>
>> If I execute the code from the "?write.table" examples section
>>
>> x <- data.frame(a = I("a \" quote"), b = pi)
>> # (ommited code)
>> write.csv(x, file = "foo.csv", fileEncoding = "UTF-16LE")
>>
>> the resulting CSV file has a size of 6 bytes which is too short
>> (truncated):
>>
>> """,3
reproducibly, yes.
If you look at what write.csv does
and then simplify, you can get a similar wrong result by
write.table(...
2016 Feb 25
2
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
...cute the code from the "?write.table" examples section
>> >>
>> >> x <- data.frame(a = I("a \" quote"), b = pi)
>> >> # (ommited code)
>> >> write.csv(x, file = "foo.csv", fileEncoding = "UTF-16LE")
>> >>
>> >> the resulting CSV file has a size of 6 bytes which is too short
>> >> (truncated):
>> >>
>> >> """,3
>>
>> reproducibly, yes.
>> If you look at what write.csv does
&...
2012 May 18
7
Dir.create_junction with FFI
Hi,
Try as I might, I just cannot get Dir.create_junction to work with FFI
in the ffi branch of the win32-dir project. The problem is the
REPARSE_JDATA_BUFFER struct. I''m just not sure how to set those
members, specifically, the PathBuffer member. The target looks good,
it''s UTF-16LE encoded, but I can''t make it work, despite trying
several ways of defining the struct, and setting various struct
members.
A quick gist for reference: https://gist.github.com/2721257
Help much appreciated!
Regards,
Dan
2008 Feb 19
2
Charset conversion : init_iconv error
Hi all,
Debian Server with linux-image-2.6.18-5-amd64 and Samba 3.0.24-6et:
When I run testparm I get the error:
Load smb config files from /etc/samba/smb.conf
init_iconv: Conversion from UTF-16LE to IS0-8859-15 not supported
init_iconv: Attempting to replace with conversion from UTF-16LE to ASCII
init_iconv: Conversion from UTF8 to IS0-8859-15 not supported
init_iconv: Attempting to replace with conversion from ASCII to ASCII
init_iconv: Conversion from IS0-8859-15 to UTF-16LE not supported...
2024 Feb 28
0
Trouble reading a UTF-16LE file
Dear R-help,
I am having trouble reading a UTF-16LE formatted file. The issue appears to be a byte order mark at the beginning of the file. I have tried readLines(file, encoding='utf-16LE') but that got me
[1]"\xff\xfe1" "" "" "" "" ""
This is a tab delimited text file, despite...
2014 Jun 22
0
[PATCH 1/6] utils/isohybrid.c: Encode GPT partition names as UTF-16LE
The worst sin of isohybrid.c was to compose GPT partition names by
8-bit characters and to memcpy() them as if they were 16 bit wide.
GPT names are encoded as UTF-16LE. It is trivial to create this encoding
from 7-bit ASCII.
This change introduces two byte arrays with the desired UTF-16LE names
which replace the string constants "ISOHybrid ISO" and "ISOHybrid".
---
utils/isohybrid.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deleti...
2010 Jul 21
3
smbd -D hangs
I'm testing both sunfreeware and official sun (sfw) samba on Solaris
10. For some reason since yesterday, the smbd process just "hangs" at
the start.
No log is generated on server side
Where smbd is started, I can't find any open port on 139 or 145
My OS is Solaris 10
# uname -a
SunOS labo2 5.10 Generic_142900-13 sun4v sparc SUNW,SPARC-Enterprise-T5120
#
2016 Feb 29
1
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
....table" examples section
>>>> >>
>>>> >> x <- data.frame(a = I("a \" quote"), b = pi)
>>>> >> # (ommited code)
>>>> >> write.csv(x, file = "foo.csv", fileEncoding = "UTF-16LE")
>>>> >>
>>>> >> the resulting CSV file has a size of 6 bytes which is too short
>>>> >> (truncated):
>>>> >>
>>>> >> """,3
>>>>
>>>> repro...
2014 Jun 24
2
[syslinux:master] isohybrid: Function to write UTF-16LE strings
...it/f9dad5340bcefe34d860e991e8743be01a4d6c3c
> Author: H. Peter Anvin <hpa at zytor.com>
> AuthorDate: Mon, 23 Jun 2014 20:06:51 -0700
> Committer: H. Peter Anvin <hpa at zytor.com>
> CommitDate: Mon, 23 Jun 2014 20:06:51 -0700
>
> isohybrid: Function to write UTF-16LE strings
>
> Rather than open-coding the content of UTF-16LE strings, just add a
> simple function to convert ASCII (only) strings to UTF-16LE.
>
> Signed-off-by: H. Peter Anvin <hpa at zytor.com>
>
> ---
> utils/isohybrid.c | 28 +++++++++++++++++++---------
> 1...
2019 Oct 10
3
user password hash
...to run it through the
> reverse of what I posted earlier to see the actual users password.
Out of curiosity I tried that, and wrote the following little bash script:
> PASSWORD="zKY\.Jp4jdiJ\_"
> UNICODEPW_GENERATED="$(echo -n "$PASSWORD" | iconv -f UTF-8 -t UTF-16LE | base64 -w 0)"
> PASSWORD_DECODED_FROM_UNICODEPW="$(echo -n $UNICODEPW_GENERATED | base64 -d -w 0 | iconv -t UTF-8 -f UTF-16LE)"
>
> echo "Password: $PASSWORD"
> echo "Generated unicodePwd: $UNICODEPW_GENERATED"
> echo "Decoded password: $PAS...
2016 Feb 24
0
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
...ction
>>>>> >>
>>>>> >> x <- data.frame(a = I("a \" quote"), b = pi)
>>>>> >> # (ommited code)
>>>>> >> write.csv(x, file = "foo.csv", fileEncoding = "UTF-16LE")
>>>>> >>
>>>>> >> the resulting CSV file has a size of 6 bytes which is too short
>>>>> >> (truncated):
>>>>> >>
>>>>> >> """,3
>>&...
2008 Aug 20
0
Samba issue not able to join to domain
Hello All,
We are facing the below problem when connecting to domain
quake:/etc/sfw-> /usr/sfw/sbin/net join -w AGILENT -U sshanmug -s /etc/sfw/smb.conf
[2008/08/18 23:10:25, 0] lib/charcnv.c:(159)
init_iconv: Conversion from UTF-16LE to CP850 not supported
[2008/08/18 23:10:25, 0] lib/charcnv.c:(167)
init_iconv: Attempting to replace with conversion from UTF-16LE to ASCII
[2008/08/18 23:10:25, 0] lib/charcnv.c:(159)
init_iconv: Conversion from UTF-8 to CP850 not supported
[2008/08/18 23:10:25, 0] lib/charcnv.c:(167)
init_...
[PATCH 1/3] lib: Add internal function to calculate strlen for strings encoded in Latin1 or UTF-16LE
2014 Jan 08
0
[PATCH 1/3] lib: Add internal function to calculate strlen for strings encoded in Latin1 or UTF-16LE
...b/lib/utf16.c
index 3641580..7dde9e5 100644
--- a/lib/utf16.c
+++ b/lib/utf16.c
@@ -123,3 +123,13 @@ _hivex_utf16_string_len_in_bytes_max (const char *str, size_t len)
return ret;
}
+
+size_t
+_hivex_utf8_strlen (const char* str, size_t len, int utf16)
+{
+ char* encoding = utf16 ? "UTF-16LE" : "LATIN1";
+ size_t ret;
+ char* buf = _hivex_recode(encoding, str, len, "UTF-8", &ret);
+ free(buf);
+ return ret;
+}
--
1.8.5.2
2024 Feb 28
1
Trouble reading a UTF-16LE file
Try this:
> x <- file("C:\\Users\\Jim\\Downloads\\PV2-ch2 - R_Help.ANA",+ encoding = "UTF-16")> y <- readLines(x)> head(y)[1] "1\t36,74\t0" "2\t269,02\t-44" "1\t326,62\t29" "2\t354,52\t24"
[5] "8\t390,75\t1838" "2\t395,11\t-1053">
>
Thanks
Jim Holtman
*Data Munger Guru*
2016 Feb 23
1
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
...the code from the "?write.table" examples section
> > >>
> > >> x <- data.frame(a = I("a \" quote"), b = pi)
> > >> # (ommited code)
> > >> write.csv(x, file = "foo.csv", fileEncoding = "UTF-16LE")
> > >>
> > >> the resulting CSV file has a size of 6 bytes which is too short
> > >> (truncated):
> > >>
> > >> """,3
> >
> > reproducibly, yes.
> > If you look at what write.c...
2006 May 22
0
smbd process grows to 25Mb resident size
...s_files.so.1
> FEBF0000 8K rw-s- dev:32,0 ino:301751
> FEC00000 64K rwx-- [ anon ]
> FEC20000 8K rw-s- dev:32,0 ino:199483
> FEC30000 64K r--s- dev:32,0 ino:199406
> FEC50000 8K rwx-- [ anon ]
> FEC60000 8K r-x-- /usr/lib/iconv/CP850%UTF-16LE.so
> FEC70000 8K rwx-- /usr/lib/iconv/CP850%UTF-16LE.so
> FEC80000 8K r-x-- /usr/lib/iconv/8859-15%UTF-16LE.so
> FEC90000 8K rwx-- /usr/lib/iconv/8859-15%UTF-16LE.so
> FECA0000 8K r-x-- /usr/lib/iconv/UTF-16LE%CP850.so
> FECB0000 8K rwx-- /usr/lib/i...
2016 Feb 25
0
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
...om the "?write.table" examples section
>>> >>
>>> >> x <- data.frame(a = I("a \" quote"), b = pi)
>>> >> # (ommited code)
>>> >> write.csv(x, file = "foo.csv", fileEncoding = "UTF-16LE")
>>> >>
>>> >> the resulting CSV file has a size of 6 bytes which is too short
>>> >> (truncated):
>>> >>
>>> >> """,3
>>>
>>> reproducibly, yes.
>>> If y...