Top "Utf-16" questions

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

What should I use? UTF8 or UTF16?

I have to distribute my app internationally. Let's say I have a control (like a memo) where the user enters …

delphi utf-8 utf-16
Escaping unicode characters with C/C++

I need to escape unicode characters within a input string to either UTF-16 or UTF-32 escape sequences. For example, the …

c++ unicode utf-16 utf-32
How can I store UTF-16 characters in a Postgres database?

I am trying to store some text (e.g. č) in a Postgres database, however when retrieving this value, it appears …

.net postgresql encoding utf-16 surrogate-pairs
Using iconv to convert from UTF-16BE to UTF-8 without BOM

I'm trying to convert a UTF-16BE encoded file (byte order mark: 0xFE 0xFF) to UTF-8 using iconv like so: …

text utf-8 utf-16 iconv
UCS-2 and SQL Server

While researching options for storing mostly-English-but-sometimes-not data in a SQL Server database that can potentially be quite large, I'm leaning …

sql-server unicode utf-8 utf-16 ucs2
Is there a drastic difference between UTF-8 and UTF-16

I call a webservice, that gives me back a response xml that has UTF-8 encoding. I checked that in java …

java xml utf-8 character-encoding utf-16
Java Unicode String length

I am trying hard to get the count of unicode string and tried various options. Looks like a small problem …

java string utf-8 utf-16 unicode-string
Python can't encode with surrogateescape

I have a problem with Unicode surrogates encoding in Python (3.4): >>> b'\xCC'.decode('utf-16_be', 'surrogateescape').encode(…

python unicode utf-16 surrogate-pairs
UTF-16 string terminator

What is the string terminator sequence for a UTF-16 string? EDIT: Let me rephrase the question in an attempt to …

c string unicode utf-16 unicode-string
Convert wchar_t* to UTF-16 string

I need a code in C++ to convert a string given in wchar_t* to a UTF-16 string. It must …

c++ c unicode utf-16 wchar-t