>How do I make this warning stop popping up on every file save?
Change the encoding to "UTF-8, No BOM" as the warning suggests.
You've been writing your documents out with a BOM this whole
time (which is not typically a good idea).
R.
--
Rich Siegel Bare Bones Software, Inc.
<sie...@barebones.com> <http://www.barebones.com/>
Someday I'll look back on all this and laugh... until they
sedate me.
>In a general context, yes, I would agree that it is not a good idea.
>However it is a Lasso file, and Lasso recognizes a BOM if present, so
>in this specific context it is necessary.
One does not follow from the other. My reading of this page
<http://www.lassosoft.com/Documentation/TotW/index.lasso?8902>
leads me to conclude that the BOM is optional and that Lasso
will do the right thing with the character set declaration that
you have in place.
Depends on what you think "the right thing" is. Without a BOM, Lasso assumes the file to have MacRoman encoding when reading the source file on a Mac server (for backwards compatibility reasons) or Latin-1 when reading the file on other server platforms. In this context, this is not the right thing. So in reality the BOM is required when using Lasso to process files saved with UTF-8 encoding.
Note that this has nothing to do with the encoding the file is actually served to a browser with. Lasso is Unicode native and use Unicode everywhere internally. The BOM is needed for Lasso to properly read source files saved with UTF-8 encoding. But Lasso can still serve the resulting output with a different encoding, and will indicate it properly with the http content-type header. The meta http-equiv header is redundant and unneeded (btw is there a way to turn off adding the meta http-equiv header?).
With Lasso, there is no connection between how the file has been saved and how it is served because everything becomes Unicode in between.
I understand that in many cases a BOM can cause unwanted side effects for (static html and php* for example), but Lasso does in fact depend on the BOM.
* http://bugs.php.net/bug.php?id=22108
--
Johan Sölve [FSA Member, Lasso Partner]
Web Application/Lasso/FileMaker Developer
MONTANIA SOFTWARE & SOLUTIONS
http://www.montania.se mailto:jo...@montania.se
(spam-safe email address, replace '-' with 'a')
I should add that Lasso consumes the BOM when reading the file, so there is no BOM in the output.