Editing a Page with the Proper Encoding

Once a file is encoded, it’s not always easy to figure out which encoding was used. Some editors, like BBEdit, use the meta declaration, if present, to try to figure it out. Others are not so savvy. A good text editor will let you manually choose the proper encoding.

To edit a page with the proper encoding:

1.
Choose File > Open in your text editor.
2.
Select your file.
3.
Choose the appropriate option for decoding an encoded file. In BBEdit, choose the proper encoding from the Read As pop-up menu (but see tip). In Word, choose Encoded Text from the Files of type box (and note tip) and then choose the encoding from the box that appears.
4.
Click OK or Open.
Figure 21.12. This document was saved without ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.