Questions tagged [endian]

8 questions
20
votes
6 answers

Unicode, Unicode Big Endian or UTF-8? What is the difference? Which format is better?

When I try to save a text file with non-English text in Notepad, I get an option to choose between Unicode, Unicode Big Endian and UTF-8. What is the difference between these formats? Assuming I do not want any backward compatibility (with older OS…
12
votes
4 answers

What determines endianness?

I was wondering if endianness only depends on CPU? Does it depends on other hardware, such as memory, secondary storage device? Does it depends on OS? Why in Wikipedia, does it seem to be true?
Tim
  • 17,743
12
votes
7 answers

Why does UTF-16 have big or little endian but UTF-8 doesn't?

UTF-16 uses 2 bytes for one character, so it has big or little endian difference. For example, the character 哈 is 54 C8 in hex. Its UTF-8 representation therefore is: 11100101 10010011 10001000 UTF-8 uses 3 bytes to present the same character, but…
Tiina
  • 3,297
3
votes
2 answers

Why is Solaris big endian

... when Unix is little endian? From Wikipedia, Solaris is based on Unix in some sense: In 1987, AT&T and Sun announced that they were collaborating on a project to merge the most popular Unix variants on the market at that time: BSD, System V, and…
Lazer
  • 18,407
2
votes
1 answer

Trouble understanding endianness

Let's say I open a tiff file in emacs and see the following in hexl-mode: 0x08000400 and I know the file is little endian. Does that mean the number is actually 262152 in decimal, or 0x00040008 in hex? Would this conversion to a decimal number be…
Tony Stark
  • 2,470
0
votes
0 answers

Is it possible to determine the byte order of the system without programming on Windows?

I would like to know how the underlying hardware system arranges the bytes in memory (whether in big or little endian). Is it possible to figure this out on Windows without programming (as suggested here…
Dawid
  • 103
  • 3
0
votes
1 answer

How does Iconv handle endianness?

echo hello | iconv -f ascii -t utf-16le | od -x produces what seems to me like a big-endian result 0068 0065 006c 006c 006f 000a whereas the same line without the le produces, on a utf16le system (OS X) echo hello | iconv -f ascii…
0
votes
1 answer

automatic conversion of endianness

I have two little endian system while transferring data between them it happens in network byte order i.e, big endian but still i receive data properly. Does it mean that, the compiler automatically take cares of this and convert it?
manoj
  • 15