In UTF-16, UTF-16BE, UTF-16LE, is the endian of UTF-16 the computer's endianness?
问题 UTF-16 is a two-byte character encoding. Exchanging the two bytes' addresses will produce UTF-16BE and UTF-16LE. But I find the name UTF-16 encoding exists in the Ubuntu gedit text editor, as well as UTF-16BE and UTF-16LE. With a C test program I found my computer is little endian, and UTF-16 is confirmed as same encoding of UTF-16LE. Also: There are two byte orders of a value (such as integer) in little/big endian computers. Little endian computers will produce little endian values in