Some Tricky Notepad Features

sakuraguy

5,000 RPM
Senior Member
Joined
Nov 4, 2004
Messages
5,848
Points
3,148
Location
Sendai, JAPAN.
These are all some tricks which u can play around with ur notepad.

Trick Number 1
Well quite old but here is d complete collection

Step 1: Open Notepad
Step 2: Write following line in the notepad.

this app can break

Step 3: Save this file as xxx.txt
Step 4: Close the notepad.
Step 5: Open the file again


Trick Number 2
1. Open Notepad
2. Enter four words separated by spaces, wherein the first word has 4 letters, the next two have three letters, and the last word has five letters
3. DON'T hit enter at the end of the line.
4. Save the file.
5. Close Notepad.
6. Reopen Notepad.
7. Open the file you just saved.



WHY?


The reason this happens:

In notepad, any other 4-3-3-5 letter word combo will have the same results.
It is all to do with a limitation in Windows. Text files containing Unicode UTF-16-encoded Unicode are supposed to start with a "Byte-Order Mark" (BOM), which is a two-byte flag that tells a reader how the following UTF-16 data is encoded.

1. You are saving to 8-bit Extended ASCII (Look at the Save As / Encoding format)
2. You are reading from 16-bit UNICODE (You guessed it, look at the Save As / Encoding format)

This is why the 18 8-bit characters are being displayed as 9 (obviously not supported by your codepage) 16-bit UNICODE characters.
 

Similar threads

Posts refresh every 5 minutes




Search

Online now

Enjoying Zerotohundred?

Log-in for an ad-less experience