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:

  1. First I wrote a single Hindi letter '¤ ??' With the file created and the file size on Windows 7 was 8 bytes.

  2. Now with two letters' ¤ ?? ¤ ?? ' And the file size was 11 bytes.

  3. 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

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -