On Saturday, October 20, 2012, Andrew Brown <[email protected]> wrote:

But... when I open a file so modified, and try to save it, I get a message

Document encoding mismatch This document contains data which
describes its encoding as Western (ISO Latin 1), but the encoding
has been set to Unicode (UTF-8). Saving this document as-is will
likely cause unexpected display of its contents and may prevent
BBEdit from opening it in the future.

WAYRTTD? This error occurs when the document has an explicit character set specified in its contents (as is the norm for HTML documents), but you've changed the text encoding setting and tried to save it.

2. How can I eliminate this problem?

Add a Replace All action to your text factory, which searches for "charset=iso-8859-1" (or whatever specification it is that occurs in your documents; check first) and changes it to specify UTF-8.

R.
--
Rich Siegel                                 Bare Bones Software, Inc.
<[email protected]>                      <http://www.barebones.com/>

Someday I'll look back on all this and laugh... until they sedate me.

--
--
You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>



Reply via email to