Questions tagged [utf-16le]

UTF-16LE is the little endian variety of UTF-16 without BOM.

UTF-16LE is the little endian variant of . While text in UTF-16 might be expected to signal endianness by starting with a Byte-Order-Mark, text in UTF-16LE should not. UTF-16LE can encode all code points in two or four bytes, like UTF-16.

UTF-16LE is the encoding used for the API, and many frameworks there. Most stored text on Windows is actually instead . Text in both formats on Windows often start with a BOM, which can confuse software not expecting it.

For any more details, consider instead.

82 questions
0
votes
0 answers

Python 3 Opens and Decodes UTF_16_le Encoded Text File as Japanese Rather Than English

So I have developed a file transformer script that opens and extracts data from an analytical result file. The file encoding seems to change when users share the file via email, so I have to try/except to decode in 'UTF_16_le', but in the event of a…
0
votes
3 answers

UTF-16 to UTF-8 PHP conversion

i've a GSM-7 returned string from USB modem device that contains UTF-16 encoded string. Example string is "007A006E0061006B006F007600690020010D0107017E0020006800610068006100730068". I need a PHP solution (function) to convert string from UTF-16…
0
votes
1 answer

How can I get a regular Delphi string from a stream after retrieving an object from Amazon S3?

I am putting a JSON string into Amazon S3 using the TAmazonStorageService class UploadObject method. When I retrieve the object it is placed in a stream (I am using a TStringStream), which appears to be coded in UTF-16 LE. If I then attempt to load…
Cary Jensen
  • 3,751
  • 3
  • 32
  • 55
0
votes
1 answer

How save file with utf-16-le bom encoding?

I can save file to utf-16-le, but i dont understand how save with bom it. import csv with open('filename.csv', mode='a', newline='', encoding='utf-16-le') as employee_file: writer = csv.writer(employee_file, delimiter=";") row = ['Job1',…
Ahvah
  • 1
  • 1
0
votes
1 answer

Hpw can I revert a encoded code " like 00E6' to character in C#

I am using program decoded the text using UTF16 LE (like the example below) so I need to revert back the encoding to characters to be able to use it. Or another solution will work with me if I can convert from UTF16LE to UTF16BE, then the convert…
0
votes
1 answer

Trying to use iconv to convert US-ASCII to UTF-16LE and getting undesired output

I'm trying to convert a file System.Web.WebPages.Razor.dll.refresh from ASCII to UTF-16LE. When I run the file -i command on other refresh files in the directory, I get something like: System.Web.Optimization.dll.refresh: text/plain;…
Ben Bynum
  • 318
  • 2
  • 10
0
votes
1 answer

How to encode string in NSIS to UTF-16LE format?

Hi I'm trying to replicate this code in Python for NSIS installer. m = hashlib.md5("C:\PROGRAM FILES\My Program".encode('utf-16LE')) It basically encode the string , then apply MD5 hash to it. I have found the MD5 hash plug-in for NSIS. However, I…
Kevin
  • 21
  • 1
  • 3
0
votes
2 answers

UTF-16LE Halfwidth vs Fullwidth? The meaning?

I have custom print functions I use to print numbers. I made an ASCII version and a UTF-16LE version. The UTF-16LE version uses the Fullwidth codes/characters for 0-9 and A-F for hexadecimal. When debugging my functions I noticed the characters…
b.sullender
  • 163
  • 1
  • 16
0
votes
1 answer

Process UTF-16LE encoded file in hadoop/cascading

I need to process a UTF-16LE encoded file in cascading on top of hadoop. I've tried following approaches but none of these are working. While assigning value -Xmx1024m -Dfile.encoding=UTF-16LE to property mapreduce.map.java.opts in mapred-site.xml…
pramesh
  • 1,914
  • 1
  • 19
  • 30
0
votes
1 answer

UTF-16LE Encoding woes with Qt text editor written in C++

So I have a QT text editor that I have started creating. I started with this http://doc.qt.io/archives/qt-5.7/gettingstartedqt.html and i have added on to it. So far I have added a proper save/save as function (the version in the link only really…
CigEmacs
  • 55
  • 1
  • 1
  • 10
0
votes
0 answers

How to add text to an existing file in Java with UTF-16LE?

Hello I am searching for a way to add text to an existing file in Java. I tried to use PrintWriter outFile = new PrintWriter(new FileWriter("planetaryData.txt", true)); But my file is written in UTF 16-LE so I have to proceed like…
0
votes
0 answers

UTF-8 to UTF16LE conversion without mbstring or iconv

It's been a long couple of days and my heads getting a little fried. I haven't done very much binary mathematics since leaving university and I'm struggling to work this one out. I've got a fairly locked down system based on PHP 5.6 that doesn't…
0
votes
1 answer

Transferring a powershell script with PyWinRM from Linux to Windows

I am trying to transfer a powershell script written in Linux to a Windows machine hosted in Azure. The idea is to copy the script to the windows machine and execute it. I am using PyWinRM to accomplish this task. There is no direct mechanism…
Meeran Mohideen
  • 169
  • 1
  • 3
  • 14
0
votes
2 answers

Character encoding in csv

We have a requirement of picking the data from Oracle DB table and dump that data into a csv file and a plain pipe seperated text file. Give a link to user on application so user can view the generated csv/text files. As lot of parsing was involved…
pranav
  • 421
  • 1
  • 11
  • 27
0
votes
1 answer

Using `xmllint` on UTF-16 (little-endian) XML

I am working on a binary file. Within this binary file, I can extract what seems to be a UTF-16 XML (little-endian) file. If I extract the data, and try to dump it from the console (running debian/jessie amd64), here is what I get: $ xmllint…
malat
  • 12,152
  • 13
  • 89
  • 158