“Also, have you tried rendering the contents of the file as text in a simple page of HTML (marked-up with the UTF-8 charset, of course)? If it is readable to the human eye, then I would copy and paste the content from the page into the original file and resave it with the UTF-8 option.” I haven’t had this happen very many times so I just never learned - I do know about encoding options in text editors and that’s usually when I screw this up, but what’s weird is I have had Notepad++ open for a really long time with other css files from other sites AND this site, but all are ok and open back up properly. What are all the factors which might change the encoding down the line? (ie text editor, ftp software, server, cms, etc etc). This site is on a server I’ve never used before and I’m building in Wordpress which I rarely use. And to make sure I didn’t screw up any other files on a site in the past few days of work! I use Notepad ++ usually and know the differences of how Notepad, Wordpad, Notepad++ …and this file displays all in one line in all editors. I’ve been designing for years and have luckily never done this before because I always keep good backups and procedures, but somehow, I don’t even know how, the file saved with all of the text on a single line! And of course the one time I’ve ever done this, and it’s on a file that I spent hours changing major CSS designs and somehow didn’t save a backup.Īlso, what are all of the reasons for something like this happening, because I’ve never actually learned how it all works precisely and I would like to figure out what I did wrong. The question is simple and most people have encountered it at one time or another, but I can’t seem to find any answers or even discussions about what happens when it’s saved incorrectly and if there is a way to fix it or change it back…other than backups. Is there a a way to convert a css file that has been saved by accident in non UTF-8 format and now only shows up all on one line?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |