ev3-blog on Nostr: I realized all this because of the use of 'echo' in the Windows terminal once I used ...
I realized all this because of the use of 'echo' in the Windows terminal
once I used Perl to write the pwd.txt file, everything went fine ... no surprise, no added extra characters
the file generated by the echo command had a BOM invisible character at the start, FF FE and 00 every second character because UTF-16 requires two code units to represent a single character.
surprise, surprise
Published at
2025-01-22 21:24:05Event JSON
{
"id": "ad142ee692a50ce4d1148e825914d1c88ea269d10633a99b3d923500de4f40af",
"pubkey": "a311301faa1b9a4e96960184ee442f70c6cbb738044ec963ad42ff264663f8f2",
"created_at": 1737581045,
"kind": 1,
"tags": [
[
"p",
"f527cf970ce260e74261214bf612e8f75a59db1835ed7e4053326c3f65e232ee",
"",
"mention"
],
[
"e",
"9fac91266f569cc1131b6c97fcb21efb01d502b4edc0477dbc95e12af866f4a2",
"",
"root"
],
[
"p",
"a311301faa1b9a4e96960184ee442f70c6cbb738044ec963ad42ff264663f8f2"
],
[
"e",
"0ff819c6278291c70883e4f54b88e7a5ff5eba8687cdc8eabe8491ffd5c173e2",
"",
"reply"
]
],
"content": "I realized all this because of the use of 'echo' in the Windows terminal\nonce I used Perl to write the pwd.txt file, everything went fine ... no surprise, no added extra characters\n\nthe file generated by the echo command had a BOM invisible character at the start, FF FE and 00 every second character because UTF-16 requires two code units to represent a single character.\n\nsurprise, surprise\n",
"sig": "68d340c1656448fe34c6236a6a39973af39175ba1927d4e2a8430c4f3b9bb2db139b75b392c9d2bd5f50ee41699ae0913530019f4de381e93b667da94b041997"
}