Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

C How does C/C++ store integer in binary file?, Endianness in x86

views
     
MatQuasar
post Jun 17 2023, 02:10 PM

Casual
***
Validating
329 posts

Joined: Jun 2023
QUOTE(tboxmy @ Jun 16 2023, 06:25 PM)
Using the online hex viewer,

Attached is the output, and how that would have shown 0x0000001234567890 in its utf-8 instead of ansi.
Hope that helps.
*
Yes, I get it. According to this Ascii UTF-8 table: https :// kellykjones.tripod.com/webtools/ascii_utf8_table.html

0x90 is becoming 0xC2 0x90
0xFF is becoming 0xC3 0xBF

But anything below 0x80 (0x00 ~ 0x7F) is still one byte original value.



 

Change to:
| Lo-Fi Version
0.0207sec    0.36    6 queries    GZIP Disabled
Time is now: 24th December 2025 - 06:57 AM