Top "Utf-16" questions

UTF-16 is a character encoding that represents Unicode code points using either 2 or 4 bytes per character.

What is Unicode, UTF-8, UTF-16?

What's the basis for Unicode and why the need for UTF-8 or UTF-16? I have researched this on Google and …

unicode encoding utf-8 utf-16
UTF-8, UTF-16, and UTF-32

What are the differences between UTF-8, UTF-16, and UTF-32? I understand that they will all store Unicode, and that each …

unicode utf-8 utf-16 utf utf-32
Byte and char conversion in Java

If I convert a character to byte and then back to char, that character mysteriously disappears and becomes something else. …

java encoding unicode utf-16
Convert UTF-8 with BOM to UTF-8 with no BOM in Python

Two questions here. I have a set of files which are usually UTF-8 with BOM. I'd like to convert them (…

python utf-8 utf-16 byte-order-mark
Difference between UTF-8 and UTF-16?

Difference between UTF-8 and UTF-16? Why do we need these? MessageDigest md = MessageDigest.getInstance("SHA-256"); String text = "This is some …

java unicode utf-8 utf-16 utf
Difference between Big Endian and little Endian Byte order

What is the difference between Big Endian and Little Endian Byte order ? Both of these seem to be related to …

unicode utf-16 endianness
How to solve "unable to switch the encoding" error when inserting XML into SQL Server

I'm trying to insert into XML column (SQL SERVER 2008 R2), but the server's complaining: System.Data.SqlClient.SqlException (0x80131904): XML …

.net sql-server xml utf-8 utf-16
Convert UTF-16 to UTF-8 under Windows and Linux, in C

I was wondering if there is a recommended 'cross' Windows and Linux method for the purpose of converting strings from …

c unicode utf-8 utf-16
What is a "surrogate pair" in Java?

I was reading the documentation for StringBuffer, in particular the reverse() method. That documentation mentions something about surrogate pairs. What …

java unicode utf-16 surrogate-pairs
Can I make git recognize a UTF-16 file as text?

I'm tracking a Virtual PC virtual machine file (*.vmc) in git, and after making a change git identified the file …

git unicode character-encoding diff utf-16