UTF16 encoding

ever4st

23. Januar 2025January 23, 2025 · 1 Min. Lesezeit1 min read

Example:

  1. Execution:

    • Open a command prompt window.
    • Type the following command:
      echo "something" > file.txt
      
    • Press Enter.
  2. File Contents:

    • The file.txt will be created with the following:
      • FF FE: BOM for little-endian UTF-16.
      • Two bytes representing the letter 's'.
      • Two bytes representing the letter 'o'.
      • And so on, for each character in "something".

Note:

#perl#utf16

Written by

Comments

No comments yet. Start the conversation.