Top "Utf-16" questions

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

How to convert string to unicode(UTF-8) string in Swift?

How to convert string to unicode(UTF-8) string in Swift? In Objective I could write smth like that: NSString *str = [[…

ios swift unicode utf-8 utf-16
What is the Unicode U+001A Character? Aka 0x1A

The U+001A character appears frequently in error messages relating to character encoding. What is the U+001A character?

xml unicode utf-8 utf-16
grepping binary files and UTF16

Standard grep/pcregrep etc. can conveniently be used with binary files for ASCII or UTF8 data - is there a …

unicode grep utf-16
Manually converting unicode codepoints into UTF-8 and UTF-16

I have a university programming exam coming up, and one section is on unicode. I have checked all over for …

unicode utf-8 utf-16
Why does .net use the UTF16 encoding for string, but uses UTF-8 as default for saving files?

From here Essentially, string uses the UTF-16 character encoding form But when saving vs StreamWriter : This constructor creates a StreamWriter …

c# .net string utf-8 utf-16
Why does the Java char primitive take up 2 bytes of memory?

Is there any reason why Java char primitive data type is 2 bytes unlike C which is 1 byte? Thanks

java unicode utf-16 widechar
java string.getBytes("UTF-8") javascript equivalent

I have this string in java: "test.message" byte[] bytes = plaintext.getBytes("UTF-8"); //result: [116, 101, 115, 116, 46, 109, 101, 115, 115, 97, 103, 101] If I do the same thing …

java javascript utf-8 byte utf-16
What is the Java's internal represention for String? Modified UTF-8? UTF-16?

I searched Java's internal representation for String, but I've got two materials which look reliable but inconsistent. One is: http://…

java string encoding utf-8 utf-16
How do I encode/decode UTF-16LE byte arrays with a BOM?

I need to encode/decode UTF-16 byte arrays to and from java.lang.String. The byte arrays are given to …

java unicode utf-16 byte-order-mark
What's the best way to export UTF8 data into Excel?

So we have this web app where we support UTF8 data. Hooray UTF8. And we can export the user-supplied data …

xml excel csv utf-8 utf-16