Best encoding and fileformat to use for web design ?
Posted: Sun Feb 14, 2010 4:01 pm
Hi everyone,
I could really do with some education in what kind of encoding/format to use when doing webdesign (HTML, CSS, PHP)
I am currently working on a PHP project at work, but files opens differently when im at home to when im at work. Now at home and work i use windows 7 and the servers i upload my php to is both linux. Now what happens is that when i open a document at home things seems to be fine, but then i go to work, download the files to my work machines and there are no line breaks, and things looks all weird. Now someone told me it is because you use Windows and upload it to linux. so if there is a solution i am hoping it has something to do with my question.
What encoding format to use and what format ? I am using notepad++ and in the settings i can set these settings for new documents.
ENCODING:
ANSI
UTF-8 Without BOM
UTF-8
UCS-2 Big Endian
UCS-2 Little Endian
Format:
Windows
Linux
Mac
If i create a php file on my desktop and open it up in Notepad++ it shows up as DOS/Windows ANSI.
I am hoping someone can teach me a little bit here, so i can use the best encoding and format when working on windows/linux.
Thanks everyone.
Rippie
I could really do with some education in what kind of encoding/format to use when doing webdesign (HTML, CSS, PHP)
I am currently working on a PHP project at work, but files opens differently when im at home to when im at work. Now at home and work i use windows 7 and the servers i upload my php to is both linux. Now what happens is that when i open a document at home things seems to be fine, but then i go to work, download the files to my work machines and there are no line breaks, and things looks all weird. Now someone told me it is because you use Windows and upload it to linux. so if there is a solution i am hoping it has something to do with my question.
What encoding format to use and what format ? I am using notepad++ and in the settings i can set these settings for new documents.
ENCODING:
ANSI
UTF-8 Without BOM
UTF-8
UCS-2 Big Endian
UCS-2 Little Endian
Format:
Windows
Linux
Mac
If i create a php file on my desktop and open it up in Notepad++ it shows up as DOS/Windows ANSI.
I am hoping someone can teach me a little bit here, so i can use the best encoding and format when working on windows/linux.
Thanks everyone.
Rippie