-
1. Re: Dreamweaver mangles my files....
mytaxsite.co.uk Sep 30, 2011 12:48 PM (in response to Lucien Schilling)You haven't said what is your default language but assuming it is English then make sure the first few lines of your page is something like this:
<!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" />
<title>Untitled 1</title>
</head>
If it has nothing to do with doctype then it can only be that your files are getting corrupted when saving to the hard disk. There simply can't be anything else.
doctype can be almost anything so you need to work it out yourself.
hth
-
2. Re: Dreamweaver mangles my files....
Lucien Schilling Oct 1, 2011 3:10 AM (in response to mytaxsite.co.uk)For the language guess you are right, but only for the first file.
The second file was a asp script, so no language tag. I was editing some quick&dirty generated HTML for mail.
The application is simple... I have a form, calling the script who generates a message according to the form fields entred. As I work and live in Luxembourg, input can be any language (French, German, English, Luxembourgish) or a mix of.
If someone would enter accented or umlaut characters (é, ö or similar), I would get in my email the unicode characters of 2 bytes instead of the representation.
That's why I experimented by putting and/or changing the "charset" identifier from utf-8 to utf-7 to see if that makes a difference. After that precise operation the file got unusable and filled with what I think is dreamweaver internal stuff.
In both cases I edited the source code inside of Dreamweaver and I didn't use any menus or other aids from dreamweaver. In the second case (the one posted), I edited the asp code who put together the mail message. It wasn't at all intended to be interpreted by Dreamweaver.
May be I should also tell my Dreamweaver version: 11 4993
For my initial problem, I found a solution, by converting my input from utf-8 to ASCII (as I don't deal with Chinese and other complex languages this time, I can do that).
FYI: Here is the correct header of my html file:
<!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" />
and the header of my asp file:
<html>
<body>
<%



