Top "Utf-16" questions

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

RSA in C# does not produce same encrypted string for specific keys?

I have a requirement, where I need to encrypt my connection string in one application and decrypt it in another. …

c# utf-8 rsa utf-16 rsacryptoserviceprovider
Java charAt used with characters that have two code units

From Core Java, vol. 1, 9th ed., p. 69: The character ℤ requires two code units in the UTF-16 encoding. Calling String sentence = "ℤ …

java unicode utf-16 surrogate-pairs astral-plane
wchar_t for UTF-16 on Linux?

Does it make any sense to store UTF-16 encoded text using wchar_t* on Linux? The obvious problem is that …

c linux unicode utf-16 wchar-t
how can I convert wstring to u16string?

I want to convert wstring to u16string in C++. I can convert wstring to string, or reverse. But I …

c++ winapi utf-16 wstring valueconverter
What character encoding does ObjectOutputStream 's writeObject method use?

I read that Java uses UTF-16 encoding internally. i.e. I understand that if I have like: String var = "जनमत"; then …

java character-encoding utf-16 fileoutputstream objectoutputstream
How do I create a string with a surrogate pair inside of it?

I saw this post on Jon Skeet's blog where he talks about string reversing. I wanted to try the example …

c# string utf-16 utf-32 surrogate-pairs
R write.csv with UTF-16 encoding

I'm having trouble outputting a data.frame using write.csv using UTF-16 character encoding. Background: I am trying to write …

r unicode csv character-encoding utf-16
How to convert Rust strings to UTF-16?

Editor's note: This code example is from a version of Rust prior to 1.0 and is not valid Rust 1.0 code, but …

string rust utf-16
Spark Read/Write (csv) ISO-8859-1

I need to read an iso-8859-1 encoded file, do some operations then save it (with iso-8859-1 encoding). To …

scala apache-spark utf-16
Why does Powershell file concatenation convert UTF8 to UTF16?

I am running the following Powershell script to concatenate a series of output files into a single CSV file. whidataXX.…

powershell utf-8 utf-16 data-conversion