utf 8 - File size in UTF-8 encoding? -
I have created a file with UTF-8 encoding, but I did not understand the size of the size of the disk. Here's my complete research:
-
First I wrote a single Hindi letter '¤ ??' With the file created and the file size on Windows 7 was 8 bytes.
-
Now with two letters' ¤ ?? ¤ ?? ' And the file size was 11 bytes.
-
Now three letters' ¤ ?? ¤ ?? ¤ ?? ' With and the file size was 14 bytes.
Can anyone explain to me why such a shape is showing?
are used for the first three bytes
EF BB BF .
Then, encode the bytes
E0 A4 95 ? <.
Then byte
0Da encode a carriage return.
Total: 8 bytes. For each letter ?? You add, you need three more bytes.
Comments
Post a Comment