Unable to change the file-format of New Text Document
Emily Wong
I'm trying to change the file-format of New Text Document to html.But the file-extension was changed and still it open as a .txt file.
74 Answers
Based on your comments you appear to have "Hide extensions of known file types" set.
This means that when you create a new text file you see:
NewFileName
rather than:
NewFileName.txt
This also means that when you rename the file all you are changing is the filename part, but not the extension. This means that Windows still treats the file as a text file rather than html file. What you have is a file called:
NewFileName.html.txt
Turn off this option. Full details can be found here but you need to go to Folder Options and select the View tab. Then find the "Hide extensions for known file types" option and clear it:
do : right click on the file and choose open with and select internet explorer
Alternatively, if using notepad or some similar editor to edit the file, make sure that you are saving as type "All Files (.)", with the extension ".html", and save as "filename.html".
When using "save as" in the text editor, change the codification to UTF-16 either LE or BE and also save the file name as .html.
Here is an example:
File name: Test.html Type: can be *.txt or all files Codification: UTF-16 LE