Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

it is very important that i get this fixed because i have to turn these projects into my professor tomarrow. i was working on some HTM files at my school, and when i go to open them up later to finalize them, i get scrambled corrupt text (like what you would see if you opened up an executable in notepad.

Sample section (cannot copy from file for some reason): tGY uyT=♣ ─◄S↓N# isoxui83§/4S§▐5‼◄♦

the code looks like the above but with diffrerent characters. is there a way to fix this or do i have to redo all four of my assignments?

share|improve this question

migrated from stackoverflow.com Sep 11 '12 at 19:32

This question came from our site for professional and enthusiast programmers.

2  
You just learned an important lesson. Save your work in three places. In addition... learn version control. (Take a look at Git. It's easy to use, even for small projects like this.) In any case, voting to move this over to SuperUser.com. There are some file recovery tools, but it looks pretty hopeless if this is what you see. –  Brad Sep 11 '12 at 1:28
    
HTML is text, looks like you didn't corrupt it but overwrote I. –  Joe Sep 11 '12 at 1:32
1  
i guess it is futile to try to recover my files then? it is kind of hard to do a reversion when my prof. requires us to use only notepad++. i guess i'll just have to redo them. –  7c00h Sep 11 '12 at 1:32
1  
@Brad, I think important lesson here is to stop using floppy disks.. –  valentinas Sep 11 '12 at 1:32
    
@valentinas lol @ floppy disks. –  rudeovski ze bear Sep 11 '12 at 1:33

2 Answers 2

Instructions 1 Open the corrupt file with a different program. For example, if a Microsoft Word file appears to be corrupt, try opening it with Notepad or a similar word processing program. Html files try notepadd++, notepad, dreamweaver.

2 Open the program you normally use to view the file and activate the program's internal repair function. For example, in Microsoft Office files select "Alt" and "F" and then the letter "O." Select the file you wish to open. Click the down arrow next to "Open" and select "Open and Repair."

3 Right click on the file and select "Copy." Browse to a new location, right click and select "Paste." This may clear up the corruption and allow you to open the file.

4 Double click "My Computer". Right click on the drive with the corrupt file and select "Properties." Click the "Tools" tab and then "Error Checking." Click "Start," and Check Disk will find and repair any errors on the drive. When Check Disk is finished, attempt to open the file.

Hope this helps, let me know if it doesn't

P.S Always remember to back up your work, have you tried restoring to a previous restore point on your computer also?

share|improve this answer

It's entirely possible that notepad++ is misdetecting the character encoding of your document. First save off a copy of your existing document (using explorer, not file-->save as)

Then try cycling though the encodings available under the encoding menu. This can acually happen with any document or text editor. It usually happens if you cut and paste certain special characters to the beginning of your docuemtns or concatenate two encoding schemes together.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.