Some Tricky Notepad Features

sakuraguy

5,000 RPM
Senior Member
Nov 4, 2004
5,834
27
3,148
Sendai, JAPAN.
www.zerotohundred.com
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.
 

The Marketplace Top Posts

Random Post Every 5 Minutes

Dear all , can I know the different between TRD EXHAUST and BT OEM ?
TRD EXHAUST ( 17400-AE031) , will this sound loud?
I had been google it , but FAIL...haha
THANKS ALL .

HAVE A NICE DAY !
Ask a question, start a discussion or post something for sale!
Post thread

Online now

Enjoying Zerotohundred?

Log-in for an ad-less experience