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

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -