nomadsoul Posted July 10, 2009 Share Posted July 10, 2009 Hi, I am using notepad and notepad++, but the html still shows in both IE and FF with or without Doc Type declarations. I make sure it is saving as .html and not .txt. But on another computer, with the same setup (xp) everything renders properly. It must be a file extension thing. Anyone else been through this? TIA Quote Link to comment https://forums.phpfreaks.com/topic/165483-solved-html-showing-in-browser/ Share on other sites More sharing options...
wildteen88 Posted July 10, 2009 Share Posted July 10, 2009 If the file contains just plain HTML it should render the page. How are you loading your html file in your web browser? Quote Link to comment https://forums.phpfreaks.com/topic/165483-solved-html-showing-in-browser/#findComment-872956 Share on other sites More sharing options...
haku Posted July 10, 2009 Share Posted July 10, 2009 Are you accessing the file directly, or through a server? If it's through a server, it sounds like your server is having troubles figuring out the mimetype. Are you maybe declaring it as plain/text? Quote Link to comment https://forums.phpfreaks.com/topic/165483-solved-html-showing-in-browser/#findComment-872970 Share on other sites More sharing options...
nomadsoul Posted July 11, 2009 Author Share Posted July 11, 2009 No Server just my other computer. And I am just typing in notepad, saving in a folder and clicking the browser icon as I've always done. When I save, the dialog box defaults to .txt, so that when I save it becomes: index.html.txt and the drop down defalults to save as type .txt. I then change it to : all types then UTF-8. I think it is forcing the save as a .txt file no matter what I call it even after removing the .txt extension. Quote Link to comment https://forums.phpfreaks.com/topic/165483-solved-html-showing-in-browser/#findComment-873282 Share on other sites More sharing options...
nomadsoul Posted July 11, 2009 Author Share Posted July 11, 2009 The other computer has a Chinese version of XP but we save to UTF-8 and also have set language to English. Maybe this is causing the problem. But I have written code using Chinese XP and still have no trouble. I've posted this problem in several places and you are the first to respond so, thanks. Quote Link to comment https://forums.phpfreaks.com/topic/165483-solved-html-showing-in-browser/#findComment-873283 Share on other sites More sharing options...
nomadsoul Posted July 11, 2009 Author Share Posted July 11, 2009 I solved it. When my girlfriend (who I was helping make a webpage) inserted the <> tags, she used the special pinyin characters instead of the regular <> so that the html looked ok but the browser didn't recognize them. I know this is an obscure problem but if you are ever in China teaching html, don't let your students use any special pinyin characters no matter how normal they appear Thanks for your time and help. Quote Link to comment https://forums.phpfreaks.com/topic/165483-solved-html-showing-in-browser/#findComment-873292 Share on other sites More sharing options...
haku Posted July 11, 2009 Share Posted July 11, 2009 I've had similar situations happen with having double-byte spaces included in my html document. You can't see them, because they are a space, but they are read as character at times and not a space, and throw up errors! Quote Link to comment https://forums.phpfreaks.com/topic/165483-solved-html-showing-in-browser/#findComment-873307 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.