Forum Moderators: open
At first I thought it was the client using something different to open. Then I tested my own pages and found the same to be true.
While I CAN correct this by opening in Word, Save As and then return to Notepad - I would like to gain some understanding of "why".
Does it have to do with Dreamweaver setting the "charset=UTF-8" (see below). If so, is this what I want, or should I change this preference? It views fine in IE on PCS and on Macs through Safari and Firefox. Thanks.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
When saving files, set the Encoding to UTF-8 rather than ANSI
see:
ANSI, Unicode, UTF-8, and the path of most resistance!
Advanced Unicode Questions
[webmasterworld.com...]
Notepad and Windows use CRLF. I think Linux uses just LF, and I think Mac uses just CR (though I'm less sure of that one).
Word sometimes takes liberties with files being saved, especially HTML, so I wouldn't trust it with that task.
However, you can accomplish the same thing by opening the file in WordPad and saving it. WordPad is less likely to do other weird things to the file.
[edited by: SteveWh at 2:41 am (utc) on Feb. 25, 2009]
All that said would I be better off using BBedit or some other text editor in Windows other than Notepad? Since the code is coming from Dreamweaver will I always have an issue between the two operating systems?
Thanks, agian
Some background on line termination can be found at [blogs.msdn.com...] .
Remember to select the current programming language you are using under the menu entry "Language"
Dave
I now see all the screwy carriage returns, again. I have used 2 different ftp programs with the same results.
At this point, just hoping to know the "why".
Thanks, again